text
stringlengths
1
22.8M
The 2014 KNSB Dutch Single Distance Championships were held at the Thialf ice stadium in Heerenveen from 25 October until 27 October 2013. Although the tournament was held in 2013 it was the 2014 edition as it is part of the 2013/2014 speed skating season. Schedule Medalists Men Men's results: Schaatsen.nl & SchaatsStatistieken.nl Women Women's results: Schaatsen.nl & SchaatsStatistieken.nl References External links KNSB Dutch Single Distance Championships KNSB Dutch Single Distance Championships 2014 Single Distance KNSB Dutch Single Distance Championships, 2014
Facial toning, or facial exercise, is a type of cosmetic procedure or physical therapy tool which alters facial contours by means of increasing muscle tone and facial volume by promoting muscular hypertrophy, and preventing muscle loss due to aging or facial paralysis. Facial toning and exercise is therefore in part a technique to achieve facial rejuvenation by reducing wrinkles, sagging, and expression marks on the face and skin. As a physical therapy, facial toning is used for victims of stroke and forms of facial paralysis such as Bell’s palsy. Facial toning achieves this by performing facial muscle exercising. There are two types of facial toning exercises: active and passive face exercises. Exercises Face exercises involves repeated voluntary contractions of certain facial muscle groups. The effectiveness of these facial toning techniques in improving appearance has been scientifically proven, with recent studies showing benefits for middle-aged women to reduce the appearance of aging. Due to the rising rate of sedentary lifestyles and stressors related to inflammation and aging in many parts of the world, facial toning exercises focus on stimulating the muscles, skin, and lymphatic systems, with the belief that strengthening specific muscle groups can help tighten and plump the outer layer of skin. Most facial toning exercises encompass long-term lifestyle strategies that promote ongoing skincare and exercise. Passive exercises Passive exercising by direct skeletal muscle electrostimulation. In this, flat metal electrodes with a conductive gel are affixed to certain points in the face and electrostimulation causes facial muscle contractions. References Cosmetics Physical exercise Toning
is a Japanese politician of the Constitutional Democratic Party and a member of the House of Councillors in the Diet (national legislature). Overview A native of Kabato District, Hokkaidō and graduate of Hokkaido University, he was elected to the House of Representatives for the first time in 1990 as an independent. He later joined first the Japan Socialist Party and then the DPJ. In 2003 he left the Diet to run for governorship of Hokkaido, which was unsuccessful. In the same year he ran for the Hokkaido 4th district in the House of Representatives and was elected. In September 2011 he was appointed as Minister of Economy, Trade and Industry in the cabinet of newly appointed prime minister Yoshihiko Noda. He resigned after being criticised for making controversial comments during his visit to the exclusion zone of Fukushima Daiichi nuclear disaster on 9 September. He compared the vicinity of the plant to a ghost town, and on the previous day, jokingly mimicked rubbing his jacket on a journalist while telling him "I'll give you radiation." Hachiro lost re-election in the 2012 general election. He recontested his old seat in 2014, but narrowly lost to the incumbent MP. He ran for a Hokkaido seat in the 2016 House of Councillors election, successfully obtaining the third seat allocated for the prefecture. When the Democratic Party merged with the Party of Hope in May 2018 to form the Democratic Party for the People, Hachiro did not join the new party and moved the CDP instead. References External links Official website Members of the House of Representatives (Japan) Politicians from Hokkaido Living people 1948 births Constitutional Democratic Party of Japan politicians Japan Socialist Party politicians Social Democratic Party (Japan) politicians Democratic Party of Japan politicians Hokkaido University alumni 21st-century Japanese politicians Government ministers of Japan
Richard Cunningham is an English actor known for playing Ryall in Stephen Poliakoff's Golden Globe winning Dancing on the Edge, for the BBC with Chiwetel Ejiofor and Matthew Goode. Early life Richard was born in Hove, in Sussex, and grew up in the small village of Wisborough Green before going on to train as an actor at the London Academy of Music and Dramatic Art. Television Other television appearances include playing Barry Flowers in the Law and Order: UK episode Help, the Sherlock episode "A Scandal in Belgravia" and in series 1 of Law and Order UK, the first actor to play two different roles in the series. He appeared as Norman Wright in Hollyoaks, Gates with Joanna Page, Colin Chalmers in EastEnders, Doctors, the BAFTA nominated London Spy with Ben Wishaw BBC2 and Dickensian as the Reverend Crisparkle. He will soon be seen in The Royals with Elizabeth Hurley and Stan Lee's Lucky Man with James Nesbitt. Film His film appearances include General Ramda in Rogue One: A Star Wars Story, the Warner Brothers film Sherlock Holmes: A Game of Shadows, the 2014 Hammer Films movie The Quiet Ones, with Jared Harris, The 100-Year-Old Man Who Climbed Out The Window And Disappeared, The Theory of Everything, the British thriller Breakdown with Craig Fairbrass, James Cosmo and Emmett J. Scanlan and the award-winning Andrew Haigh film 45 Years with Charlotte Rampling and Tom Courtenay who won Silvers Bears at the Berlin International Film Festival and the film won The Michael Powell Award For Best British Feature Film at the Edinburgh International Film Festival, Charlotte Rampling was also nominated for Best Actress at the 88th Academy Awards . He also appeared in Burnt with Bradley Cooper and The Man Who Knew Infinity with Dev Patel and Jeremy Irons . Theatre Theatre roles include playing the Commander in Fuente Ovejuna at the Southwark Playhouse and Tom Stoppard's Indian Ink at the Aldwych Theatre. Filmography References External links Living people Year of birth missing (living people) 21st-century English male actors English male television actors English male film actors People from Hove People from Wisborough Green Male actors from Sussex
Russian Commercial and Industrial Bank v Comptoir d'Estcompte de Mulhouse [1925] AC 112 is a UK company law and banking case, concerning the authority of an officer of a company to carry out its actions, and a company's existence as a legal person. Facts The Russian Commercial and Industrial Bank's head office was in Petrograd in 1914. It had a branch in London. The branch manager had power of attorney to transact business and sue in the bank's name. By the Petrograd office's direction, the London branch deposited Brazilian and Chinese government bonds with a London bank, to be held as security for the French bank, Comptoir d'Estcompte, for an account opened by Comptoir d'Estcompte for Russian Commercial and Industrial Bank. In 1918, the Bolshevik government nationalised Russian banking, taking over all assets, share capital and management of private banking, and vesting them in a state bank, then the People's Bank, and then a government department. The London branch manager agreed with the French bank to pay off the amount of money it owed to the French bank, in return for the bonds. The money was paid, but the French bank refused to return the bonds. Judgment Court of Appeal The Court of Appeal held by a majority that the French bank could keep the bonds. Bankes LJ and Scrutton LJ held that because of nationalisation, the Russian bank ceased to exist, and it therefore had no authority to direct the manager of the London branch to allow Russian Commercial and Industrial Bank to bring the action. Moreover, the French bank was not precluded by estoppel from relying on absence of authority as a defence. Atkin LJ dissented. In the course of his judgment he wrote the following. House of Lords The House of Lords overturned the Court of Appeal and endorsed the dissenting judgment of Atkin LJ. See also UK company law Notes References United Kingdom company case law House of Lords cases 1925 in British law 1925 in case law
Lockjaw is an extended play (EP) by Australian musicians Flume and Chet Faker, released on 22 November 2013 by Future Classic. Background Flume and Faker had previously worked together on the track "Left Alone" from Flume's 2012 album, Flume. In September 2013, Flume announced that he and Faker had recorded an EP, stating that the final result "doesn't sound particularly like Flume or specifically like, you know, a Chet Faker record it really is kinda like a hybrid of both sounds going to one" and he feels like everything they did with the EP "was collaborative about the whole effort, and I think that shines through." Reception Josh Dixon from Renowned for Sound gave the EP 4.5/5 stars, saying; "Each track though is clearly purposeful in its intent as a song and the EP stands strong and even goes as far as exceeding some of the overdrawn full-length albums seen today in the genre of electronic music. The EP will undoubtedly leave you wanting more." Robin Fulton from On Record Magazine gave the EP 4/5 stars, writing; "The three track EP is an interesting cocktail of genre ambiguity with up and down tempo beats placed over harmonic, deep and emotion-fueled instrumentals carried along by Chet Faker’s responsive and perfectly layered vocals." Samuel Hernadez of Quipmag felt that "On their Lockjaw EP, Flume and Chet Faker find a way to update your emotions, bringing creativity to vocals verging on the tearful." Alim Kheraj of Planet Notion commented; "Lockjaw is a pure success. It manages to showcase what talents these two artists are. The obvious difficulty comes when trying to find the medium between the two. Fortunately, Lockjaw manages this. It's exciting to see something that could (and should) blossom and develop into a full album." Alex Young of Consequence of Sound stated: "They have found a muse in each other, and as long as they stick to intertwining their sounds rather than trying to do something completely unfamiliar, there is seemingly plenty to be reaped from it." Young added, "The suggestion of a full album from this partnership would certainly be a welcome one." Singles "Drop the Game" was promoted as the first official single from the EP. A video was released on 18 November 2013. Track listing Commercial performance In Australia, sales of the EP counted towards the single "Drop the Game", which peaked at 18 and was certified platinum. The two other tracks, when purchased independently of the EP, charted at Nos. 52 and 53 respectively in December 2013. Certifications References 2013 EPs Flume (musician) EPs Albums produced by Flume (musician) Chet Faker albums Future Classic EPs
```kotlin package com.apollographql.apollo.gradle.internal import com.apollographql.apollo.gradle.internal.ApolloPlugin.Companion.extraHeaders import com.apollographql.apollo.tooling.SchemaUploader import org.gradle.api.DefaultTask import org.gradle.api.provider.Property import org.gradle.api.tasks.Input import org.gradle.api.tasks.Optional import org.gradle.api.tasks.TaskAction import org.gradle.api.tasks.options.Option import java.io.File abstract class ApolloPushSchemaTask : DefaultTask() { @get:Input @get:Optional @get:Option(option = "schema", description = "The schema to push as SDL") abstract val schema: Property<String> @get:Input @get:Option(option = "key", description = "The Apollo API key. See path_to_url for more information on how to get your API key.") abstract val key: Property<String> @get:Input @get:Option(option = "graph", description = "The identifier of the Apollo graph used to download the schema.") abstract val graph: Property<String> @get:Input @get:Option(option = "graphVariant", description = "The variant of the Apollo graph used to download the schema.") abstract val graphVariant: Property<String> @get:Optional @get:Input @get:Option(option = "subgraph", description = "The subgraph name. Can be omitted if the graph is a legacy monograph.") abstract val subgraph: Property<String> @get:Optional @get:Input @get:Option(option = "revision", description = "The revision name. Can be omitted if the graph is a legacy monograph, must be provided otherwise.") abstract val revision: Property<String> @get:Input abstract var projectRootDir: String @TaskAction fun taskAction() { val key = key.get() var graph = graph.get() val graphVariant = graphVariant.get() val schema = schema.orNull val subgraph = subgraph.orNull val revision = revision.orNull if (key.startsWith("service:")) { graph = key.split(":")[1] } check(schema != null) { "please define schema" } check(subgraph == null && revision == null || subgraph != null && revision != null) { "please define both subgraph and revision or neither" } // Files are relative to the root project. It is not possible in a consistent way to have them relative to the current // working directory where the gradle command was started SchemaUploader.uploadSchema( apolloKey = key, graph = graph, variant = graphVariant ?: "current", sdl = File(projectRootDir).resolve(schema).readText(), headers = extraHeaders, subgraph = subgraph, revision = revision, ) logger.info("Apollo: schema pushed successfully") } } ```
The men's 1500 metres competition of the Short track speed skating at the 2015 Winter Universiade was held at the Universiade Igloo, Granada on February 11. Results Heats Q — qualified for Semifinals ADV — advanced PEN — penalty Semifinals QA — qualified for Finals A QB — qualified for Finals B ADV — advanced PEN — penalty Finals Final B (classification round) Final A (medal round) Men's 1500
In baseball, a grand slam is a home run that is hit when the bases are loaded (i.e., there are runners occupying first, second, and third base simultaneously), thereby scoring four runs—the most possible in one play. Thirteen players have hit two grand slams in a single Major League Baseball (MLB) game to date, the most recent being Josh Willingham of the Washington Nationals on July 27, 2009. No player has accomplished the feat more than once in his career and no player has ever hit more than two in a game. Tony Lazzeri was the first player to hit two grand slams in a single game, doing so for the New York Yankees against the Philadelphia Athletics on May 24, 1936. Every team which had a player hit two grand slams won their milestone games. These games have resulted in other single-game MLB records being set due to the prodigious offensive performance. Lazzeri, for example, proceeded to hit a third home run in the game and finished with a total of eleven runs batted in, an American League record. Fernando Tatís became the only player to hit two grand slams in the same inning, when he attained the milestone, slugging two in the third inning for the St. Louis Cardinals on April 23, 1999. In achieving the feat, he also set a new major league record with eight runs batted in in a single inning. Tony Cloninger is the only pitcher to have accomplished the feat. Bill Mueller hit his grand slams from both sides of the plate, while Jim Northrup hit his grand slams on consecutive pitches received in the fifth and sixth innings. Nomar Garciaparra is the sole player to achieve the feat at home, doing so at Fenway Park for the Boston Red Sox. Cloninger is the only player who never hit a grand slam before or after his milestone game, while Robin Ventura—with 18 grand slams—hit more than any other player in this group. Frank Robinson is also a member of the 500 home run club. Of the nine players eligible for the Baseball Hall of Fame who have hit two grand slams in a game, two have been elected, one on the first ballot. Players are eligible for the Hall of Fame if they have played in at least 10 MLB seasons, and have either been retired for five seasons or deceased for at least six months. These requirements leave ineligible one player—Jim Tabor—who did not play in 10 seasons. Players References General Specific Major League Baseball statistics
The Lost Chords is a live album by American composer, bandleader and keyboardist Carla Bley with Andy Sheppard, Steve Swallow, and Billy Drummond recorded in Europe in 2003 and released on the Watt/ECM label in 2004. Reception The album received critical approval. The Allmusic review by Thom Jurek awarded The Lost Chords 3½ stars and stated "The depth of communication here is marvelous, and given the level of comfort these musicians have with one another, that feeling of ease is communicated to the listener as well". The JazzTimes review by Geoffrey Himes said "if great jazz playing involves fresh harmonic thinking and ensemble give-and-take, this is some of the best jazz playing around.". The Penguin Guide to Jazz awarded it 4 stars calling it "A marvellous record... Recommended to fans and newcomers alike". Track listing All compositions by Carla Bley. "3 Blind Mice: 3 Blind Mice" - 5:33 "3 Blind Mice: Wink Leak/Traps/Leonard Feather" - 5:30 "3 Blind Mice: The Maze/Blind Mice Redux" - 4:14 "Hip Hop" - 7:44 "Tropical Depression" - 7:39 "Red" - 6:03 "Lost Chords: I" - 9:07 "Lost Chords: II" - 4:23 "Lost Chords: III" - 3:41 Recorded live in Europe in October 2003. Personnel Carla Bley - piano Andy Sheppard - tenor saxophone Steve Swallow - bass guitar Billy Drummond - drums References ECM Records live albums Carla Bley live albums 2004 live albums
```smalltalk using System.Threading.Tasks; using AspectCore.Extensions.Windsor; using AspectCoreTest.Windsor.Fakes; using Castle.MicroKernel.Registration; using Castle.Windsor; using Xunit; namespace AspectCoreTest.Windsor { public class RegistrationExtensionsTests { private static IWindsorContainer CreateWindsorContainer() { return new WindsorContainer().AddAspectCoreFacility(); } [Fact] public async Task AsProxy_Test() { var container = CreateWindsorContainer(); container.Register(Component.For<ICacheService>().ImplementedBy<CacheService>().LifestyleTransient()); var proxyService = container.Resolve<ICacheService>(); Assert.Equal(proxyService.Get(1), proxyService.Get(1)); Assert.Equal(await proxyService.GetAsync(2), await proxyService.GetAsync(2)); } [Fact] public void AsProxyWithParamter_Test() { var container = CreateWindsorContainer(); container.Register(Component.For<ICacheService>().ImplementedBy<CacheService>().LifestyleTransient(), Component.For<IController>().ImplementedBy<Controller>().LifestyleTransient()); var proxyService = container.Resolve<ICacheService>(); Assert.Equal(proxyService.Get(1), proxyService.Get(1)); var proxyController = container.Resolve<IController>(); Assert.Equal(proxyService.Get(100), proxyController.Execute()); } } } ```
```xml import { getOSType, OSType } from '../../../common/utils/platform'; /** * Decide if the given Python executable looks like the MacOS default Python. */ export function isMacDefaultPythonPath(pythonPath: string): boolean { if (getOSType() !== OSType.OSX) { return false; } const defaultPaths = ['/usr/bin/python']; return defaultPaths.includes(pythonPath) || pythonPath.startsWith('/usr/bin/python2'); } ```
```swift /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ import EchoImplementation import GRPC import NIOCore import NIOEmbedded import XCTest import struct Foundation.Data import struct Foundation.URL final class ServerFuzzingRegressionTests: GRPCTestCase { private static let failCasesURL = URL(fileURLWithPath: #filePath) .deletingLastPathComponent() // ServerFuzzingRegressionTests.swift .deletingLastPathComponent() // GRPCTests .deletingLastPathComponent() // Tests .appendingPathComponent("FuzzTesting") .appendingPathComponent("FailCases") private func runTest(withInput buffer: ByteBuffer) { let channel = EmbeddedChannel() try! channel.connect(to: try! SocketAddress(ipAddress: "127.0.0.1", port: 0)).wait() defer { _ = try? channel.finish() } let configuration = Server.Configuration.default( target: .unixDomainSocket("/ignored"), eventLoopGroup: channel.eventLoop, serviceProviders: [EchoProvider()] ) XCTAssertNoThrow(try channel._configureForServerFuzzing(configuration: configuration)) // We're okay with errors. Crashes are bad though. _ = try? channel.writeInbound(buffer) channel.embeddedEventLoop.run() } private func runTest(withInputNamed name: String) throws { let url = ServerFuzzingRegressionTests.failCasesURL.appendingPathComponent(name) let data = try Data(contentsOf: url) let buffer = ByteBuffer(data: data) self.runTest(withInput: buffer) } func testFuzzCase_debug_4645975625957376() { let name = your_sha256_hash57376" XCTAssertNoThrow(try self.runTest(withInputNamed: name)) } func testFuzzCase_release_5413100925878272() { let name = your_sha256_hash5878272" XCTAssertNoThrow(try self.runTest(withInputNamed: name)) } func testFuzzCase_release_5077460227063808() { let name = your_sha256_hash3808" XCTAssertNoThrow(try self.runTest(withInputNamed: name)) } func testFuzzCase_release_5134158417494016() { let name = your_sha256_hash4016" XCTAssertNoThrow(try self.runTest(withInputNamed: name)) } func testFuzzCase_release_5448955772141568() { let name = your_sha256_hash1568" XCTAssertNoThrow(try self.runTest(withInputNamed: name)) } func testFuzzCase_release_5285159577452544() { let name = your_sha256_hash2544" XCTAssertNoThrow(try self.runTest(withInputNamed: name)) } func testFuzzCase_release_4739158818553856() { let name = your_sha256_hash3856" XCTAssertNoThrow(try self.runTest(withInputNamed: name)) } } ```
```c++ /* * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * * path_to_url * * Unless required by applicable law or agreed to in writing, * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * specific language governing permissions and limitations */ /*! * \file simplify.cc * \brief Statement simplifier based on analyzer */ #include "../../tir/transforms/simplify.h" #include <tvm/arith/analyzer.h> #include <tvm/runtime/registry.h> #include <tvm/tir/analysis.h> #include <tvm/tir/builtin.h> #include <tvm/tir/expr.h> #include <tvm/tir/op.h> #include <tvm/tir/transform.h> #include <optional> #include "../../arith/ir_mutator_with_analyzer.h" #include "../../tir/analysis/control_flow_graph.h" #include "../../tir/analysis/var_use_def_analysis.h" namespace tvm { namespace arith { using namespace tir; struct SimplifyConfigNode : public tvm::AttrsNode<SimplifyConfigNode> { bool transitively_prove_inequalities; bool propagate_knowns_to_prove_conditional; bool propagate_knowns_to_simplify_expressions; bool convert_boolean_to_and_of_ors; bool apply_constraints_to_boolean_branches; TVM_DECLARE_ATTRS(SimplifyConfigNode, "tir.transform.SimplifyConfig") { TVM_ATTR_FIELD(transitively_prove_inequalities) .describe( "If true, simplify conditionals with transitive combinations of scoped constraints") .set_default(false); TVM_ATTR_FIELD(propagate_knowns_to_prove_conditional) .describe( "If true, known buffer values are propagated and used to statically prove conditionals") .set_default(false); TVM_ATTR_FIELD(propagate_knowns_to_simplify_expressions) .describe( "If true, known buffer values are propagated and used to replace BufferLoad wherever " "possible") .set_default(false); TVM_ATTR_FIELD(convert_boolean_to_and_of_ors) .describe("If true, simplify conditionals into an AND of ORs") .set_default(false); TVM_ATTR_FIELD(apply_constraints_to_boolean_branches) .describe( "If true, simplify each branch of AND/OR " "under a constraints provided by the other branch") .set_default(false); } RewriteSimplifier::Extension GetEnabledExtensions() const { RewriteSimplifier::Extension flags = RewriteSimplifier::kNone; if (transitively_prove_inequalities) { flags = RewriteSimplifier::Extension(flags | RewriteSimplifier::kTransitivelyProveInequalities); } if (convert_boolean_to_and_of_ors) { flags = RewriteSimplifier::Extension(flags | RewriteSimplifier::kConvertBooleanToAndOfOrs); } if (apply_constraints_to_boolean_branches) { flags = RewriteSimplifier::Extension(flags | RewriteSimplifier::kApplyConstraintsToBooleanBranches); } return flags; } }; /* \brief Utility function to collect vars that should be retained */ std::unordered_set<const VarNode*> CollectVarsUsedInBufferDefinition(const Stmt& stmt) { struct Visitor : StmtExprVisitor { using StmtExprVisitor::VisitExpr_; using StmtExprVisitor::VisitStmt_; void VisitExpr_(const BufferLoadNode* op) override { VisitBuffer(op->buffer); StmtExprVisitor::VisitExpr_(op); } void VisitStmt_(const BufferStoreNode* op) override { VisitBuffer(op->buffer); StmtExprVisitor::VisitStmt_(op); } void VisitBuffer(const Buffer& buf) { // Collect variables that should remain defined VarUseDefAnalyzer usage(Array<Var>{}); usage(buf->data); for (const auto& dim : buf->shape) { usage(dim); } for (const auto& dim : buf->strides) { usage(dim); } usage(buf->elem_offset); // Track for use in LetStmtNode mutator for (const auto& var : usage.undefined_) { used_in_buffer_def_.insert(var.get()); } } std::unordered_set<const VarNode*> used_in_buffer_def_; }; Visitor visitor; visitor(stmt); return visitor.used_in_buffer_def_; } class SimplifyConfig : public Attrs { public: TVM_DEFINE_NOTNULLABLE_OBJECT_REF_METHODS(SimplifyConfig, Attrs, SimplifyConfigNode); }; TVM_REGISTER_NODE_TYPE(SimplifyConfigNode); TVM_REGISTER_PASS_CONFIG_OPTION("tir.Simplify", SimplifyConfig); class StmtSimplifier : public IRMutatorWithAnalyzer { public: static PrimFunc Apply(PrimFunc func, Analyzer* analyzer, Optional<SimplifyConfig> config_opt = NullOpt) { auto config = config_opt.value_or(AttrsWithDefaultValues<arith::SimplifyConfig>()); analyzer->rewrite_simplify.SetEnabledExtensions(config->GetEnabledExtensions()); std::optional<ControlFlowGraph> touch_pattern = std::nullopt; if (config->propagate_knowns_to_prove_conditional || config->propagate_knowns_to_simplify_expressions) { touch_pattern = ControlFlowGraph(func->body); } std::unordered_set<const VarNode*> used_in_buffer_def = CollectVarsUsedInBufferDefinition(func->body); StmtSimplifier simplifier(analyzer, config, std::move(touch_pattern), std::move(used_in_buffer_def)); simplifier.MarkBufferMapShapes(func); func.CopyOnWrite()->body = simplifier(func->body); return func; } private: explicit StmtSimplifier(Analyzer* analyzer, SimplifyConfig config, std::optional<ControlFlowGraph> touch_pattern, std::unordered_set<const VarNode*> used_in_buffer_def) : IRMutatorWithAnalyzer(analyzer), config_(config), touch_pattern_(touch_pattern), used_in_buffer_def_(used_in_buffer_def) {} using Parent = IRMutatorWithAnalyzer; using Parent::VisitExpr_; using Parent::VisitStmt; using Parent::VisitStmt_; PrimExpr VisitExpr(const PrimExpr& expr) final { if (config_->propagate_knowns_to_simplify_expressions) { return touch_pattern_->SimplifyInContext(expr, current_stmt_.value(), analyzer_); } else { return analyzer_->Simplify(expr); } } Stmt Simplify(Stmt stmt) { return operator()(std::move(stmt)); } Stmt VisitStmt(const Stmt& stmt) override { Optional<Stmt> cache = this->current_stmt_; this->current_stmt_ = stmt; Stmt output = Parent::VisitStmt(stmt); this->current_stmt_ = std::move(cache); return output; } Stmt VisitStmt_(const ForNode* op) final { analyzer_->Bind(op->loop_var, Range::FromMinExtent(op->min, op->extent)); With<ConstraintContext> ctx1(analyzer_, op->loop_var >= op->min); With<ConstraintContext> ctx2(analyzer_, op->loop_var < op->min + op->extent); return Parent::VisitStmt_(op); } bool CanInlineLetStmt(const LetStmtNode* op) { if (is_const_number(op->value)) return true; if (op->value.as<VarNode>()) return true; // Won't face the deep expression explosion problem as in Let expression. // attempt to inline as much as possible if the value integer type(can be index). if (!op->value.dtype().is_int()) return false; return SideEffect(op->value) <= CallEffectKind::kPure; } Stmt VisitStmt_(const LetStmtNode* op) override { PrimExpr value = this->VisitExpr(op->value); bool can_inline = CanInlineLetStmt(op); if (can_inline) { // It is usually fine to discard the let binding because the // call to simplify will always inline the var. // // The exception is when the variable is used in a Buffer's // definition, as these are not updated by the simplification. // After DeclBuffer is required prior to use of a buffer, // simplifying can update the buffer definition as well. The // buffer can only be updated at its point of definition, // because the points of use may occur within contexts that // allow for additional simplifications (e.g. a buffer of shape // [i,j] whose first use occurs within "if i==1" should not have // its shape simplified to [1,j]). analyzer_->Bind(op->var, value); } else if (SideEffect(op->value) <= CallEffectKind::kPure) { // Even if we aren't replacing all occurrences, they may be // necessary for proving conditional statements. non_inlined_bindings_.Set(op->var, value); } Stmt body = this->VisitStmt(op->body); // TODO(Lunderberg): Update the Buffer object as part of // DeclBuffer updates, which will first require // path_to_url bool used_in_buffer_def = used_in_buffer_def_.count(op->var.get()); if (can_inline && !used_in_buffer_def) { return body; } else if (value.same_as(op->value) && body.same_as(op->body)) { return GetRef<Stmt>(op); } else { auto n = this->CopyOnWrite(op); n->value = std::move(value); n->body = std::move(body); return Stmt(n); } } Stmt VisitStmt_(const IfThenElseNode* op) override { if (Optional<Bool> cond = ProveCondition(op->condition)) { if (cond.value()->value) { return this->VisitStmt(op->then_case); } else if (op->else_case) { return this->VisitStmt(op->else_case.value()); } else { return Evaluate(0); } } else { return Parent::VisitStmt_(op); } } PrimExpr VisitExpr_(const CallNode* op) override { if (op->op.same_as(builtin::if_then_else())) { if (Optional<Bool> cond = ProveCondition(op->args[0])) { if (cond.value()->value) { return this->VisitExpr(op->args[1]); } else { return this->VisitExpr(op->args[2]); } } } return Parent::VisitExpr_(op); } PrimExpr VisitExpr_(const BufferLoadNode* op) override { return Parent::VisitExpr_(op); } // eliminate useless stores Stmt VisitStmt_(const BufferStoreNode* op) override { BufferStore store = Downcast<BufferStore>(Parent::VisitStmt_(op)); if (const BufferLoadNode* load = store->value.as<BufferLoadNode>()) { if (load->buffer->data.same_as(store->buffer->data) && ArrayDeepEqual(load->indices, store->indices) && tir::ExprDeepEqual()(load->buffer->elem_offset, store->buffer->elem_offset) && ArrayDeepEqual(load->buffer->shape, store->buffer->shape) && ArrayDeepEqual(load->buffer->strides, store->buffer->strides)) { return Evaluate(0); } } return std::move(store); } private: bool ArrayDeepEqual(const Array<PrimExpr>& lhs, const Array<PrimExpr>& rhs) { if (lhs.size() != rhs.size()) { return false; } for (size_t i = 0; i < lhs.size(); i++) { if (!tir::ExprDeepEqual()(lhs[i], rhs[i])) { return false; } } return true; } /* \brief Internal utility for checking conditionals * * Uses more aggressive optimization, such as performing additional * inlining and tracking known buffer values. */ Optional<Bool> ProveCondition(PrimExpr condition) const { condition = Substitute(condition, non_inlined_bindings_); if (config_->propagate_knowns_to_prove_conditional) { ICHECK(touch_pattern_.has_value()); condition = touch_pattern_->SimplifyInContext(condition, current_stmt_.value(), analyzer_); } else { condition = analyzer_->Simplify(condition); } if (const int64_t* as_int = as_const_int(condition)) { return Bool(*as_int); } else { return NullOpt; } } SimplifyConfig config_; std::optional<ControlFlowGraph> touch_pattern_; Map<Var, PrimExpr> non_inlined_bindings_; Optional<Stmt> current_stmt_{NullOpt}; std::unordered_set<const VarNode*> used_in_buffer_def_; }; } // namespace arith namespace tir { PrimFunc Simplify(PrimFunc func, arith::Analyzer* analyzer) { return arith::StmtSimplifier::Apply(std::move(func), analyzer); } namespace transform { Pass Simplify() { auto pass_func = [](PrimFunc f, IRModule m, PassContext ctx) { arith::Analyzer analyzer; auto cfg = ctx->GetConfig<arith::SimplifyConfig>("tir.Simplify"); return arith::StmtSimplifier::Apply(f, &analyzer, cfg); }; return CreatePrimFuncPass(pass_func, 0, "tir.Simplify", {}); } TVM_REGISTER_GLOBAL("tir.transform.Simplify").set_body_typed(Simplify); } // namespace transform } // namespace tir } // namespace tvm ```
Benjamin O’Connor (born 1949), known as Bernie O'Connor, is an Irish former hurler and manager. As a player he lined out with Meelin, before later serving as a coach and manager, most notably with Newtownshandrum. Playing career O'Connor first played for his club, Meelin, in the Duhallow division in 1962, winning an U14 hurling championship. He followed this U16 and minor hurling medals in 1964 and 1966 respectively. He also played Gaelic football at juvenile level at the time, before later winning league and championship medals in that code with Rockchapel and Knockskevane. In 1963, O'Connor was drafted onto the Duhallow divisional senior team and made his debut in the Cork SHC as a 14-year-old a year later. After several years of near misses for Meelin, O'Connor won the first of a record-equalling four successive Duhallow JHC titles with his club in 1970. By this stage, O'Connor had already appeared at inter-county level with Cork. He was the first player from Duhallow to be called up to the minor team and was at full-forward for their defeat of Wexford in the 1967 All-Ireland final. He also lined out with the under-21 team in the opening round of the 1968 Munster U21HC. O'Connor lined out with the senior team during the 1973-73 National League. He later appeared with London in a defeat by Laois in the 1977 All-Ireland SBHC final. On his return to Ireland, O'Connor won three further successive Duhallow JHC titles in 1980, 1981 and 1982. He completed a divisional double in 1981 by winning a Duhallow JFC medal with Deel Rovers. O'Connor continued to line out with Duhallow until 1984 and won an eighth and final divisional hurling title in 1986. O'Connor transferred to the Newtownshandrum club in 1986 and extended his playing career for another decade. He won a North Cork JB2HC medal in 1993 and captained the team the following year when the title was retained. Coaching career O'Connor's first experience with coaching came with Meelin who, as player-coach, he guided to three successive Duhallow JHC titles from 1980 to 1982. He simultaneously enjoyed success as coach of the Milford team, winning the Cork JHC title in 1981, followed by the Cork IHC title in 1982. O'Connor had been involved as coach of various teams since transferring to Newtownshandrum as a player. A Cork IHC title in 1996 was followed by three successive Cork U21HC from 1998 to 2000. O'Connor was also manager of the club's senior team that won their first ever Cork SHC title in 2000. After stepping away from the team the following year, O'Connor was appointed manager of the Kerry senior hurling team in November 2001. He resigned after one season due to a lack of commitment by the players. O'Connor returned to manage the team to their third Cork SHC title in 2005. A second Munster Club SHC title was later secured before losing to Portuman in the 2006 All-Ireland club final. O'Connor remained involved with the team in various capacities over the following few years before stepping down in 2012. Personal life O'Connor's twin sons, Ben and Jerry O'Connor won five All-Ireland SHC medals between them between 1999 and 2005. Honours Player Meelin Duhallow Junior A Hurling Championship: 1970, 1971, 1972, 1973, 1980, 1981, 1982, 1986 Deel Rovers North Cork Junior A Football Championship: 1981 Cork All-Ireland Minor Hurling Championship: 1967 Munster Minor Hurling Championship: 1967 Management Meelin Duhallow Junior A Hurling Championship: 1980, 1981, 1982 Milford Cork Intermediate Hurling Championship: 1982 Cork Junior Hurling Championship: 1981 North Cork Junior A Hurling Championship: 1981 Newtownshandrum Munster Senior Club Hurling Championship: 2005 Cork Senior Hurling Championship: 2000, 2005 Cork Intermediate Hurling Championship: 1996 Cork Under-21 Hurling Championship: 1998, 1999, 2000 References 1949 births Living people Meelin hurlers Rockchapel Gaelic footballers Newtownshandrum hurlers Duhallow hurlers Cork inter-county hurlers London inter-county hurlers Hurling goalkeepers Hurling managers
North Oxford is a suburban part of the city of Oxford in England. It was owned for many centuries largely by St John's College, Oxford and many of the area's Victorian houses were initially sold on leasehold by the College. Overview The leafy roads of Woodstock Road to the west and Banbury Road to the east (leading to Woodstock and Banbury respectively) run north-south through the area, meeting at their southern ends to become St Giles. North Oxford is noted for its schools, especially its private schools. These include the Dragon School and Summer Fields (formerly Summerfield), which are preparatory schools, and St Edward's School and the Oxford High School for Girls, Wychwood School and d'Overbroeck's College which are secondary schools and St. Clare's, Oxford, an international sixth form college which is the longest provider of the International Baccalaureate Diploma in England (source ISA). Geography The boundary of "North Oxford" is not exactly defined, but the original area developed by St John's College (sometimes now called "Central North Oxford") runs north from the top end of St Giles' to approximately Kingston Road, Frenchay Road, Staverton Road, and Marston Ferry Road, south of Summertown. It includes Park Town, Norham Manor, and the eastern parts of Walton Manor. Four of Oxford University's former women's colleges, Lady Margaret Hall, St Anne's, St Hugh's and Somerville (at the southern extreme) are located in North Oxford. There are also four graduate colleges, Green Templeton College (formerly Green College), St Antony's, both off the Woodstock Road, Kellogg on Banbury Road, and to the east Wolfson, on the River Cherwell. To the south of the college is the Cherwell Boathouse, a popular punting spot. Further south, also bordering the Cherwell, are the University Parks. A large open area of ancient common land, Port Meadow, adjoining the River Isis (the section of the River Thames that flows through Oxford) is located to the west. Much of the central area contains excellent examples of late 19th century Victorian Gothic architecture, and is now a conservation area. The conservation area includes three Grade I listed buildings, the Church of St Philip and St James (which now houses the Oxford Centre for Mission Studies), the Observer's House (now Osler House), and the Radcliffe Observatory; the latter two are now both part of Green Templeton College. There are Regency-style houses built in the mid-19th century in the crescents of Park Town, initially in the middle of the countryside but now surrounded by the rest of the suburb. Central North Oxford between the city centre and Summertown, has been described as the most desirable suburb of Oxford, England. It is popularly supposed that it was originally developed for the dons of the University once they were allowed to marry. However central North Oxford in particular includes many large houses which were then unaffordable by most dons, and the houses were instead occupied by successful tradesmen of the city. Today, many homes are occupied by rich London commuters, attracted by the good schools. A number of the larger houses are used by Oxford colleges and other educational establishments. At the northern extremity of North Oxford, which is approximately the line of the A40 (the northern bypass, part of the Oxford ring road) are three suburbs, Sunnymead and Cutteslowe (to the east of Banbury Road) and Wolvercote to the west of Woodstock Road. Beyond the bypass is the village of Kidlington. Wolvercote Cemetery contains the grave of J. R. R. Tolkien (note that Wolvercote Cemetery is not in Wolvercote itself, but beside Banbury Road north of the A40). Cutteslowe Park is a large open area just to the north of this bypass. Notable people North Oxford has attracted famous residents, such as the authors and academics J. R. R. Tolkien (1892–1973) and Iris Murdoch (1919–1999). Murdoch lived with her husband and fellow academic John Bayley, and the area was featured in the biographical film, Iris. T. E. Lawrence (known as Lawrence of Arabia) grew up in Polstead Road, North Oxford. Sir John Betjeman (1906–1984), Poet Laureate, was an enthusiast about North Oxford and wrote poems mentioning the area, such as May-Day Song for North Oxford: See also Norham Manor Walton Manor Acland Hospital Cherwell Boathouse Oxford Ecohouse St Philip and St James Church Moreton Road References Bibliography External links Oxford City: North Oxford information Areas of Oxford St John's College, Oxford
"Mars vs. Mars" is the fourteenth episode of the first season of the American mystery television series Veronica Mars. The episode's teleplay was written by Jed Seidel and Diane Ruggiero, from a story by series creator Rob Thomas, and was directed by Marcos Siega. The episode premiered on UPN on February 15, 2005. The series depicts the adventures of Veronica Mars (Kristen Bell) as she deals with life as a high school student while moonlighting as a private detective. In this episode, Veronica and her father Keith (Enrico Colantoni) take opposing sides when Veronica's world history teacher, Mr. Rooks (Adam Scott) is accused of sexual assault on a student. Synopsis Immediately after the previous episode, Logan (Jason Dohring) appears at Veronica's door and asks Veronica to help find his mother, Lynn (Lisa Rinna), whom he believes is alive. Veronica agrees to help out. The next day in class, Veronica participates in a fun and unorthodox world history review with a teacher, Mr. Rooks (Adam Scott). However, the fun is disrupted when Carrie Bishop (Leighton Meester) tells the teacher that she's not pregnant and that he can "have [his] key back." Veronica talks to the teacher, but he denies that he ever touched Carrie. Meanwhile, Wallace Fennel (Percy Daggs III) steals Carrie's school file while Veronica asks Duncan (Teddy Dunn) for the name of his practitioner, wanting to find out what meds he was taking. Veronica angrily confronts Carrie about her lying. Veronica walks into Mars Investigations, when she learns that Keith has been hired by Carrie's parents, pitting father and daughter against each other. Later, Cliff McCormack (Daran Norris) fake interviews the woman who saw Lynn's suicide, and Logan blows up at her. Veronica visits Mr. Rooks's home, where she finds out the details of the parent-teacher conference a few months earlier: it was simply about grades on the midterm paper. However, Mr. Rooks does not have a lawyer for the hearing. Keith presents some increased evidence for his side to Veronica. Logan gives a tabloid newspaper to Veronica, which states that Lynn Echolls is still alive. Veronica interviews the woman who wrote the story, but the woman turns out to be a crazed fan. Logan is finally convinced that his mother is dead. Weevil (Francis Capra) tells Veronica about a freshman who says that Lynn Echolls jumped. Veronica talks to Mr. Rooks about his previous firing (which Keith attributed to sexual assault). Veronica tells Carrie about the fault in her story—that she was actually at a track meet the day she claimed to have had sex with Mr. Rooks. Veronica steals Duncan's medical records and finds out that Abel Koontz (Christian Clemenson) shared a doctor with the Kanes. At the school hearing, Mr. Rooks is acquitted when Carrie's text message evidence is debunked after Veronica shows that it is incredibly easy to create fake text messages. Veronica visits Mr. Rooks's house, where she notices several of the details that Carrie mentioned about his house. Veronica researches Duncan's medication, which she finds is used to treat a form of epilepsy which can cause violent fits and memory blackouts. Duncan researches the winner of the Extemporaneous Speaking Competition, a competition which Mr. Rooks was involved in, and Veronica visits her. It turns out that that girl, Susan (Christine Lakin), was the one who slept with Mr. Rooks and that she is pregnant. However, Carrie tried to make her story known. Weevil brings the freshman who talked about Logan's mom to Logan and Veronica. The boy was shooting a movie on a bridge and saw a body jumping from the bridge at 4:37 PM, exactly the time Lynn Echolls probably jumped from the bridge. However, a few minutes later, Veronica notices that Lynn Echolls's missing credit card has just been used. Later, Veronica sees that Mr. Rooks has resigned. Veronica talks to Abel Koontz, and she reveals a key piece of information: Abel Koontz was dying, so he decided to go to jail because he's going to die anyway, suggesting that he's a proxy for an unknown person. Arc significance Veronica finds a video that apparently shows Lynn Echolls falling from the bridge and shows it to Logan, but then gets a report that one of Lynn's credit cards has been used. Veronica finds out that Abel Koontz is dying. Veronica finds out that Duncan has type IV epilepsy. Music In addition to the series's theme song, "We Used to Be Friends", by The Dandy Warhols, the following music can be heard in the episode: "Don't Stand So Close to Me" by The Police (sung by several girls to Carrie Bishop to mock her) "Tulips" by Bloc Party "Worried About You" by The Rolling Stones Production The episode was written by three regular writers—series creator Rob Thomas, Jed Seidel, and Diane Ruggiero. This is Thomas's fifth writing credit for the series, after "Pilot", "Credit Where Credit's Due", "Return of the Kane" (story), and "Drinking the Kool-Aid (story). In addition, the episode is Seidel's fourth writing credit, after "Meet John Smith", "The Girl Next Door", and "Silence of the Lamb" and Ruggiero's fourth writing credit, after "The Wrath of Con", "The Girl Next Door" (teleplay), and "An Echolls Family Christmas". As a joke, three of the episode's guest stars' last names are also names of chess pieces—Carrie Bishop, Susan Knight, and Chuck Rooks. Among the episode's guest stars are Adam Scott, who would later become known for his role on Party Down (which was co-created by Veronica Mars writers and producers Rob Thomas, John Enbom and Dan Etheridge), and Leighton Meester, who would later become famous for her role on Gossip Girl as Blair Waldorf. Lead actress Kristen Bell provided the anonymous voiceover for Gossip Girl. 11 years after this episode aired, Bell and Scott would later appear together on the comedy series The Good Place. Reception Ratings In its original airing, the episode received 2.70 million viewers, ranking 107th of 115 in the weekly rankings. Reviews Television Without Pity gave the episode an "A". Rowan Kaiser, writing for The A.V. Club, gave a positive review. He noted Veronica's increased presence in the episode. "Veronica's a busy bee in this episode, making time to dominate the A, B, and C-plots." Also, the reviewer praised the character development in the episode, stating that "[b]ut again, it's the character work that makes this episode stand out. Thanks to having three different plots, all using Veronica, it has a constant narrative drive." Price Peterson of TV.com wrote positively of the episode as well. In the reviewer's verdict, he wrote, "This was just a good episode of Veronica Mars. Lots of different conflicts, reversals, and reveals." References External links "Mars vs. Mars" at Mars Investigations 2005 American television episodes Veronica Mars (season 1) episodes Television episodes directed by Marcos Siega
The New National Party (NNP), also known as NNP Grenada, Carriacou and Petite Martinique, is a conservative political party in Grenada. It is led by former Prime Minister, Keith Mitchell. The party was founded in August 1984 through the merger of the Grenada National Party, led by Herbert Blaize, the National Democratic Party, led by George Brizan, and the Grenada Democratic Movement (GDM), led by Francis Alexis. Led by Blaize, the NNP won 14 out of 15 seats in the December 1984 general election, and Blaize became Prime Minister. Mitchell was elected as leader of the NNP in January 1989, defeating Prime Minister Herbert Blaize. In the 1990 general election, the NNP won two seats and was left in opposition. The party was victorious in the 1995 general election, winning eight out of 15 seats in the House of Representatives, and Mitchell became Prime Minister. After the NNP lost its majority due to the resignation of Raphael Fletcher, the Minister of Foreign Affairs, in November 1998, an early election was called for January 1999, the New National Party (NNP) won all seats. The NNP narrowly won a third term in power in the November 2003 election, reduced to a one-seat parliamentary majority. In the general election held on 27 November 2003, the party won 48.0% of the popular vote and 8 out of 15 seats. In the July 2008 general election, the party lost to the National Democratic Congress (NDC), winning four seats against 11 for the NDC. NDC leader Tillman Thomas succeeded Mitchell as Prime Minister of Grenada. In the 2013 general election, the New National Party returned to power, after winning all 15 seats. This was the second time a political party won all constituencies in a general election. At the 2018 General Election, the New National Party was able to retain all 15 seats. In November 2021, Prime Minister Keith Mitchell said that the upcoming general elections which are constitutionally due no later than June 2023, will be the last one for him. Early elections were held in June 2022 and Mitchell ultimately led the party to defeat. List of leaders of the New National Party Electoral history House of Representatives elections See also Brenda Hood, parliamentarian and Cabinet Minister References External links Political parties in Grenada Conservative parties in Grenada International Democrat Union member parties Political parties established in 1984 1984 establishments in Grenada Main
Aegomorphus nearnsi is a species of beetle in the family Cerambycidae. It was described by Martins and Galileo in 2010. References Aegomorphus Beetles described in 2010
```c /* { dg-do compile } */ #define ATTR_PRINTF __attribute__ ((format (printf, 1, 2))) #define ATTR_USED __attribute__ ((used)) void bar (int, ...); /* gcc would segfault on the nested attribute. */ void foo (void) { bar (0, (void (*ATTR_PRINTF) (const char *, ...)) 0); } /* For consistency, unnamed decls should give the same warnings as named ones. */ void proto1 (int (*ATTR_USED) (void)); /* { dg-warning "attribute ignored" } */ void proto2 (int (*ATTR_USED bar) (void)); /* { dg-warning "attribute ignored" } */ ```
The Scarlet Brotherhood is a regional sourcebook for the Greyhawk campaign setting for the Dungeons & Dragons fantasy role-playing game. Contents The Scarlet Brotherhood detailed the Scarlet Brotherhood lands, the Tilvanot Peninsula, Hepmonaland, and the Amedio Jungle. The sourcebook was notable for being the first source on the Olman people since The Hidden Shrine of Tamoachan and for detailing many new nations and realms south of the Flanaess for the first time. The Touv people and their pantheon were invented for this book. Several new monsters, including the Bredthrall, and many new plants and flora were created for this book as well. Publication history The sourcebook was written by Sean K. Reynolds, and published by TSR in March 1999 for 2nd edition Advanced Dungeons & Dragons. Reception Reviews Backstab #15 Envoyer #32 References Bibliography Reynolds, Sean K. The Scarlet Brotherhood. Renton, WA: TSR, 1999. Greyhawk books Role-playing game supplements introduced in 1999
```c++ /* * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. */ #include "config.h" #include "platform/ContextMenuItem.h" #include "platform/ContextMenu.h" namespace blink { ContextMenuItem::ContextMenuItem(ContextMenuItemType type, ContextMenuAction action, const String& title, const String& icon, ContextMenu* subMenu) : m_type(type) , m_action(action) , m_title(title) , m_icon(icon) , m_enabled(true) , m_checked(false) { if (subMenu) setSubMenu(subMenu); } ContextMenuItem::ContextMenuItem(ContextMenuItemType type, ContextMenuAction action, const String& title, const String& icon, bool enabled, bool checked) : m_type(type) , m_action(action) , m_title(title) , m_icon(icon) , m_enabled(enabled) , m_checked(checked) { } ContextMenuItem::ContextMenuItem(ContextMenuAction action, const String& title, bool enabled, bool checked, const Vector<ContextMenuItem>& subMenuItems) : m_type(SubmenuType) , m_action(action) , m_title(title) , m_enabled(enabled) , m_checked(checked) , m_subMenuItems(subMenuItems) { } ContextMenuItem::~ContextMenuItem() { } void ContextMenuItem::setSubMenu(ContextMenu* subMenu) { if (subMenu) { m_type = SubmenuType; m_subMenuItems = subMenu->items(); } else { m_type = ActionType; m_subMenuItems.clear(); } } void ContextMenuItem::setType(ContextMenuItemType type) { m_type = type; } ContextMenuItemType ContextMenuItem::type() const { return m_type; } void ContextMenuItem::setAction(ContextMenuAction action) { m_action = action; } ContextMenuAction ContextMenuItem::action() const { return m_action; } void ContextMenuItem::setChecked(bool checked) { m_checked = checked; } bool ContextMenuItem::checked() const { return m_checked; } void ContextMenuItem::setEnabled(bool enabled) { m_enabled = enabled; } bool ContextMenuItem::enabled() const { return m_enabled; } } // namespace blink ```
```objective-c // 2016 and later: Unicode, Inc. and others. /* ********************************************************************** * Corporation and others. All Rights Reserved. ********************************************************************** */ #ifndef __LXUTILITIES_H #define __LXUTILITIES_H #include "layout/LETypes.h" U_NAMESPACE_BEGIN class LXUtilities { public: static le_int8 highBit(le_int32 value); static le_int32 search(le_int32 value, const le_int32 array[], le_int32 count); static void reverse(le_int32 array[], le_int32 count); static void reverse(float array[], le_int32 count); }; U_NAMESPACE_END #endif ```
```c++ /******************************************************************************* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *******************************************************************************/ #include <compiler/ir/attr_keys.hpp> #include <compiler/ir/easy_build.hpp> #include <compiler/ir/ir_comparer.hpp> #include <compiler/ir/ir_module.hpp> #include <compiler/ir/transform/cpu/closurize.hpp> #include <iostream> #include "context.hpp" #include "exception_util.hpp" #include "gtest/gtest.h" #include <runtime/config.hpp> using namespace dnnl::impl::graph::gc; TEST(GCCore_CPU_closurize_cpp, TestSingleCore) { builder::ir_builder_t builder; _function_(datatypes::void_t, tester) { _tensor_(t, datatypes::f32, {100}); _for_(i, 2, 10, 2, for_type::PARALLEL) { t[i] = 2; } } _function_(datatypes::void_t, expected) { _tensor_(t, datatypes::f32, {100}); _for_(i, 2, 10, 2) { t[i] = 2; } } auto mod = closurizer_cpu_t(true)( ir_module_t::from_entry_func(get_default_context(), tester)); auto func = mod->get_func("tester"); ir_comparer cmper {}; ASSERT_TRUE(func); ASSERT_TRUE(cmper.compare(func, expected)); } TEST(GCCore_CPU_closurize_cpp, TestClosurizeCPU) { builder::ir_builder_t builder; auto m = std::make_shared<ir_module_t>(get_default_context()); _global_var_(m, gv, datatypes::s32, 1); _function_(datatypes::void_t, tester) { _var_(b, datatypes::s32); _tensor_(t, datatypes::f32, {100}); _for_(i, 2, 10, 2, for_type::PARALLEL) { gv = 2; t[b + i] = gv; } _for_(i, 2, 10, 2, for_type::PARALLEL) { gv = 2; t[b + i] = gv + 1; } } m->add_func({tester}); bool use_managed = runtime_config_t::get().managed_thread_pool_ == thread_pool_mode_t::MANAGED; m->attr_[ir_module_t::attr_key_t::MANAGED_THREAD_POOL] = runtime_config_t::get().managed_thread_pool_; auto testerout = closurizer_cpu_t(false)(m); auto outfuncs = testerout->get_contents(); ASSERT_EQ(outfuncs.size(), 5u); // 0 -> tester // 1 -> closure0 // 2 -> closure0_wrapper // 3 -> closure1 // 4 -> closure1_wrapper _function_(datatypes::void_t, closure1, _arg_("i", datatypes::index), _arg_("t", datatypes::f32, {100}), _arg_("b", datatypes::s32)) { _bind_(i, t, b); gv = 2; t[b + i] = gv; } _function_(datatypes::void_t, closure2, _arg_("i", datatypes::index), _arg_("t", datatypes::f32, {100}), _arg_("b", datatypes::s32)) { _bind_(i, t, b); gv = 2; t[b + i] = gv + 1; } ir_comparer cmp(true); EXPECT_TRUE(cmp.compare(outfuncs[1], closure1)); EXPECT_TRUE(cmp.compare(outfuncs[3], closure2)); auto u64_0 = make_expr<constant_node>(UINT64_C(0)); auto pointer_0 = make_expr<constant_node>(UINT64_C(0), datatypes::pointer); auto u8_pointer_0 = make_expr<constant_node>( UINT64_C(0), datatypes::s8.get_pointerof()); _function_(datatypes::void_t, tester2) { _var_(b, datatypes::s32); _tensor_(t, datatypes::f32, {100}); builder.push_scope(); { _tensor_(args, datatypes::generic, {2UL}); args[0UL] = builder::make_cast(datatypes::generic, t); args[1UL] = builder::make_cast(datatypes::generic, b); expr callnode = builder::make_call( get_parallel_call_with_env_func(use_managed), {builder::make_func_addr(outfuncs[2]), u64_0, pointer_0, u8_pointer_0, 2UL, 10UL, 2UL, args}); builder.push_evaluate(callnode); } builder.emit(builder.pop_scope()); builder.push_scope(); { _tensor_(args, datatypes::generic, {2UL}); args[0UL] = builder::make_cast(datatypes::generic, t); args[1UL] = builder::make_cast(datatypes::generic, b); expr callnode = builder::make_call( get_parallel_call_with_env_func(use_managed), {builder::make_func_addr(outfuncs[4]), u64_0, pointer_0, u8_pointer_0, 2UL, 10UL, 2UL, args}); builder.push_evaluate(callnode); } builder.emit(builder.pop_scope()); } EXPECT_TRUE(cmp.compare(outfuncs[0], tester2, false)); } static optional<uint64_t> get_parallel_call_flag(const func_t f, int idx = 0) { return f->body_.static_as<stmts>() ->seq_.at(idx) .cast<stmts>() .map([](const stmts &v) { return v->seq_.back().as<evaluate>(); }) .map([](const evaluate &v) { return v->value_.as<call>(); }) .map([](const call &v) { return v->args_.at(1).as<constant>(); }) .map([](const constant &v) { return v->get_index(); }); } TEST(GCCore_CPU_closurize_cpp, TestClosurizeCPURemoveBarrier) { builder::ir_builder_t builder; if (runtime_config_t::get().managed_thread_pool_ != thread_pool_mode_t::MANAGED) { GTEST_SKIP(); } _function_(datatypes::boolean, aaa) { _for_(i, 0, 10, 2, for_type::PARALLEL) {} _return_(true); } { _function_(datatypes::void_t, tester1) { _evaluate_call_(aaa); _tensor_(b, datatypes::index, 1); } tester1->attr()[function_attrs::is_main] = true; auto m1 = ir_module_t::from_entry_func(get_test_ctx(), tester1); m1->attr_[ir_module_t::attr_key_t::MANAGED_THREAD_POOL] = thread_pool_mode_t::MANAGED; auto testerout1 = closurizer_cpu_t(false)(m1); auto f = testerout1->get_func("aaa"); ASSERT_TRUE(f); ASSERT_EQ(f->body_.static_as<stmts>()->seq_.size(), 2UL); auto flag = get_parallel_call_flag(f); ASSERT_TRUE(flag.has_value() && flag.get() == 0); } { _function_(datatypes::void_t, tester1) { _evaluate_call_(aaa); } tester1->attr()[function_attrs::is_main] = true; auto m1 = ir_module_t::from_entry_func(get_test_ctx(), tester1); m1->attr_[ir_module_t::attr_key_t::MANAGED_THREAD_POOL] = thread_pool_mode_t::MANAGED; auto testerout1 = closurizer_cpu_t(false)(m1); auto f = testerout1->get_func("aaa"); ASSERT_TRUE(f); ASSERT_EQ(f->body_.static_as<stmts>()->seq_.size(), 2UL); auto flag = get_parallel_call_flag(f); ASSERT_TRUE(flag.has_value() && flag.get() == 4UL); } _function_(datatypes::void_t, bbb) { _for_(i, 0, 10, 2, for_type::PARALLEL) {} _tensor_(b, datatypes::index, 1); } { _function_(datatypes::void_t, tester1) { _evaluate_call_(bbb); } tester1->attr()[function_attrs::is_main] = true; auto m1 = ir_module_t::from_entry_func(get_test_ctx(), tester1); m1->attr_[ir_module_t::attr_key_t::MANAGED_THREAD_POOL] = thread_pool_mode_t::MANAGED; auto testerout1 = closurizer_cpu_t(false)(m1); auto f = testerout1->get_func("bbb"); ASSERT_TRUE(f); ASSERT_EQ(f->body_.static_as<stmts>()->seq_.size(), 2UL); auto flag = get_parallel_call_flag(f); ASSERT_TRUE(flag.has_value() && flag.get() == 0); } } TEST(GCCore_CPU_closurize_cpp, TestClosurizeCPURemoveBarrierPinMemory) { builder::ir_builder_t builder; if (runtime_config_t::get().managed_thread_pool_ != thread_pool_mode_t::MANAGED) { GTEST_SKIP(); } { expr bbb_A, aaa_A, tester_A, tester_B, tester_T; _function_(datatypes::boolean, aaa, _arg_("t", datatypes::f32, {100})) { _bind_(t); _tensor_(A, datatypes::f32, 100); aaa_A = A; _for_(i, 0, 10, 2, for_type::PARALLEL) { t[0] = 1; A[i] = 0.0f; } _return_(true); } _function_(datatypes::boolean, bbb, _arg_("t", datatypes::f32, {100}), _arg_("t2", datatypes::f32, {100})) { _bind_(t, t2); _tensor_(A, datatypes::f32, 100); bbb_A = A; _for_(i, 0, 10, 2, for_type::PARALLEL) { t[0] = 1; t2[0] = 1; A[i] = 0.0f; } _return_(true); } _function_( datatypes::void_t, tester1, _arg_("t", datatypes::f32, {100})) { _bind_(t); tester_T = t; _tensor_(A, datatypes::f32, 100); tester_A = A; _tensor_(B, datatypes::f32, 100); tester_B = B; _tensor_(C, datatypes::f32, 100); builder.get_current_scope() .as_seq() .back() .checked_as<define>() ->init_ = builder::tensor_ptr(B, {0UL}); _evaluate_call_(aaa, A); _evaluate_call_(bbb, C, t); } tester1->attr()[function_attrs::is_main] = true; auto m1 = ir_module_t::from_entry_func(get_test_ctx(), tester1); m1->attr_[ir_module_t::attr_key_t::MANAGED_THREAD_POOL] = thread_pool_mode_t::MANAGED; auto testerout1 = closurizer_cpu_t(false)(m1); ASSERT_TRUE(bbb_A->attr().get<bool>(attr_keys::runtime_stack_alloc)); ASSERT_TRUE(tester_B->attr().get<bool>(attr_keys::runtime_stack_alloc)); ASSERT_FALSE(tester_A->attr().get_or_else<bool>( attr_keys::runtime_stack_alloc, false)); } { _function_(datatypes::boolean, aaa, _arg_("t", datatypes::pointer, {100})) { _bind_(t); _tensor_(A, datatypes::f32, 100); builder.get_current_scope() .as_seq() .back() .checked_as<define>() ->init_ = t[0]; _for_(i, 0, 10, 2, for_type::PARALLEL) { A[i] = 0.0f; } _return_(true); } _function_( datatypes::void_t, tester1, _arg_("t", datatypes::f32, {100})) { _bind_(t); _tensor_(A, datatypes::f32, 100); _evaluate_call_(aaa, A); } tester1->attr()[function_attrs::is_main] = true; auto m1 = ir_module_t::from_entry_func(get_test_ctx(), tester1); m1->attr_[ir_module_t::attr_key_t::MANAGED_THREAD_POOL] = thread_pool_mode_t::MANAGED; auto testerout1 = closurizer_cpu_t(false)(m1); auto f = testerout1->get_func("aaa"); ASSERT_TRUE(f); ASSERT_EQ(get_parallel_call_flag(f, 1).get(), 0UL); } } ```
Interac e-Transfer (formerly Interac Email Money Transfer or EMT) is a Canadian funds transfer service between personal and business accounts in participating Canadian banks and other financial institutions, offered through Interac Corporation. From inception until early 2018, the service was provided by Acxsys, a for-profit consortium backed by most of the major partners of the nonprofit Interac Association, and using the Interac brand under licence. In February 2018, the activities of both organizations were combined into a single for-profit organization under the Interac name. Participating institutions Most Canadians who use online banking can send funds. These include personal deposit account holders with the big five banks (Bank of Montreal (BMO), Bank of Nova Scotia (Scotiabank), Canadian Imperial Bank of Commerce (CIBC) (and its digital banking division Simplii Financial), Royal Bank of Canada (RBC), and TD Bank Group (Toronto Dominion-Bank)), Desjardins, Tangerine, National Bank, HSBC Bank Canada, President's Choice Financial, EQ Bank and many credit unions and other institutions, as well as some small-business account holders. In 2015, 105 million money transfers were sent using the platform totalling over 44 billion in value. Any personal account holder in Canada can receive funds. How it works An e-Transfer resembles an e-cheque in many respects. The money is not actually transferred by e-mail. Only the instructions to retrieve the funds are. The sender opens an online banking session and chooses the recipient, the amount to send, as well as a security question and answer. The funds are debited instantly, usually for a surcharge. The sender sends the security answer separately to the recipient, usually through another medium outside of the e-mail as a secondary security measure. An e-mail or text message is then sent to the recipient, with instructions on how to retrieve the funds and answer the question, via a secure website. The recipient must answer the security question correctly. (If the recipient fails to answer the question correctly after three tries, then the funds will automatically be returned to sender.) If the recipient is subscribed to online banking at one of the participating institutions, the funds are deposited instantly at no extra charge. If the recipient's deposit account is not at one of the participating institutions or not subscribed to online banking at all, the funds are deposited within three to five business days, and a surcharge (currently $4.00) is deducted from the amount received. The Autodeposit feature allows senders to send money and be received by the recipient without the recipient having to answer a security question. The recipient must enable this feature in their account settings. Not all banks offer this feature. When an eTransfer has not been accepted after a certain period of time, the transfer will not go through. The transfer duration depends on bank and/or on the persons settings. Some eTransfers can be automatically cancelled after 24 hours or for a period of up to 30 days, depending on bank/user. Banks like TD, CIBC and RBC have a set 30 day limit until an eTransfer is cancelled, while other banks have shorter durations and set limits. Benefits and disadvantages Unlike a cheque, the funds from an e-Transfer are not frozen in the recipient's account. An e-Transfer cannot bounce, as the funds are guaranteed, having been debited from the sender's account immediately upon initiating the transfer. As long as both sender and recipient bank are participating institutions, the funds are sent and received instantly. However, in some cases, for example two people with different banking institutions, transfers may take anywhere between near instant, or up to a few hours for the receiving party to get their emailed notice. However, like any online banking mode of payment, e-Transfers are vulnerable to phishing. Many Canadians in areas where the Big Five banks have little presence or who do not bank online are penalized by a surcharge when receiving e-Transfers. Unlike a real giro, an e-Transfer requires intervention from the recipient for every single transaction, unless the recipient has signed up for Autodeposit. An e-Transfer goes stale much faster than a cheque (after 30 days, the e-Transfer is automatically cancelled, and the sender is notified by e-mail to retrieve the funds). Security and privacy issues In 2019 several articles published by Erica Johnson (CBC news) reported that e-Transfers had been intercepted and/or redirected via different means such as guessing security questions or impersonating e-Transfer customers. In many cases, the customers were not reimbursed. In the same year, a paper published on arxiv.org examined the security and privacy of Interac e-Transfer and came to the conclusion that "Standard e-Transfers are potentially insecure against redirections" and that "the platform fails to protect its customers' privacy" due to relying on technologies such as e-mail and SMS. See also Electronic funds transfer References External links Financial services companies of Canada Payment systems Banking in Canada Mobile payments
Wesley A.C. Pomeroy (January 1, 1920 – May 4, 1998) was an American lawyer, Assistant U.S. Attorney General, federal coordinator for the Law Enforcement Assistance Administration, assistant director of the DEA, and founding member of various humanitarian and policy-making organizations. Biography Early years Pomeroy was born in Burbank, California. He attended Pacific Union College in Napa County, where he met, and later married, Marjorie Cusick. He began his law enforcement career at the California Highway Patrol as a state trooper. In 1943, he joined the Marines and served in the Pacific during World War II. After the war, he resumed his job as a California Highway Patrol officer. He joined the San Mateo County Sheriff's Office in 1951, where he rose through the ranks to become undersheriff in 1960. While in this position, he pioneered the department's work-furlough and honor camp facilities, which were the only such programs in the nation at the time. During this time, he also spent his evenings attending law school. He received a law degree from San Francisco Law School and subsequently passed the California bar exam. In 1964, he was charged with managing security for the Republican National Convention in the Cow Palace, San Francisco, California. The convention was met with great controversy as there was conflict not only within the Republican Party itself but also from anti-war protesters and civil rights activists. Before this convention, political party conventions were only given cursory security staff unless a former or active president attended, with which Secret Service would be present. Due to several violent and non-violent threats towards the convention, Pomeroy was brought in to manage 18 different police forces providing security to the venue. Due to his diplomatic efforts and management, the convention was successful and not disrupted. Pomeroy continued to serve as a consultant on security for national conventions of both political parties until 1992. Government career His success managing the Republican National Convention drew national attention, and in 1967 he was made coordinator of federal law enforcement. Under Warren Christopher, who was the deputy attorney general, he managed the Federal Command Post at the Conrad Hilton hotel overlooking Grant Park in Chicago during the 1968 Democratic Convention. Mayor Richard Daley had requested federal back-up after numerous threats by protesters. After assessing the situation, Pomeroy was frustrated with Mayor Daley's approaches, especially putting officers on 12-hour shifts, as well as being informed that he had no jurisdiction over the Chicago police force. He did have control over the Illinois National Guard and ordered them to replace the Chicago Police Department at various times, including one night in front of the Hilton hotel. Pomeroy is credited to have, despite Mayor Daley's interference, kept the situation from becoming worse than it could have been. Pomeroy was appointed Assistant Attorney General in 1968 by Ramsey Clark, the Attorney General in President Lyndon B. Johnson's administration. Clark appointed him to help coordinate anti-crime efforts, as well as heading the Federal area of the investigation into the assassination of Martin Luther King Jr. During this time he also implemented plans for protecting all the government buildings in Washington, D.C. Lyndon B. Johnson then appointed Pomeroy as the Republican member to lead the Law Enforcement Assistance Administration along with Patrick V. Murphy and Ralph Liu. He was replaced when Richard Nixon took over as President of the United States in late 1969. Ramsey Clark later stated after Pomeroy's death, "Wes Pomeroy was a loving and gentle person who worked hard, over the years, to heal the violence in our society. He was one of the few people in law enforcement whose interest and commitment was humanitarian and who understood that security depends finally on love not force." Pomeroy returned to public service in 1977 under the Carter administration. He was a consultant on the Drug Abuse Council (now part of the National Institute on Drug Abuse) before becoming the assistant director of the Drug Enforcement Administration. He also served as the associate director of the White House Office of Drug Abuse Policy (now the Office of National Drug Control Policy). Woodstock Festival One of the most memorable aspects of Wesley Pomeroy's career was serving as vice president and director of security for the Woodstock Festival of 1969. Despite high-profile bands and almost 500,000 in attendance, there were only 2 confirmed deaths, both of which were accidental. Pomeroy went on to head security for some high-profile bands' US tours, including Led Zeppelin. He described the problems with such a large festival in an interview with the Redwood City Tribune. "I think I would discourage anyone thinking about putting on another one. When you get that many people together who want to use drugs and take off their clothes, it is impossible to enforce the laws against those things," he was quoted. The last Woodstock concert, in 1999, was shut down early due to violence, rape, fires, and other malicious civil unrest. Career after government service Pomeroy briefly had a criminal justice consulting firm from 1969 to 1971, when he relocated his family from Falls Church, Virginia to Minnesota after taking a job with the University of Minnesota. The board of regents appointed Pomeroy as the director of safety and development in 1971. He held this position until 1974, when he resigned to return to traditional law enforcement. Pomeroy moved back to California and served as the Berkeley, California, chief of police. He left this post in 1977 at the request to serve in Jimmy Carter's administration. After Carter left office, Pomeroy became the deputy director of the Michigan Department of Mental Health. He went on to become an honorary fellow with the American Psychiatric Association, an award seldom given to non-physicians. Pomeroy assumed the role of executive director of the Miami-Dade Independent Review Panel in 1983. He retains the title in emeritus to this day. His service in this capacity was so valued that mandatory ordinances for retirement were suspended twice so that he could continue in this position. After heart bypass surgery, he retired in 1995. Organizational involvement Wesley Pomeroy was a key figure in the creation of prominent organizations and served important advisory roles in others. He was the founder and president of the International Association of the Civilian Oversight of Law Enforcement (now the National Association of the Civilian Oversight of Law Enforcement), was a founder of the Police Executive Research Forum, and a founding member of the International Study of Panetics. He was also a long-time member of the American Civil Liberties Union (where he also previously served on the board of directors), National Drug Strategy Network, National Organization for the Reform of Marijuana Laws (also serving on the advisory board in 1977), the National Association for the Advancement of Colored People, American Psychiatric Association, the Drug Policy Foundation (where he also served as a director until his death), and the Unrepresented People's Positive Action Council. Death Wesley Pomeroy died May 4, 1998, aged 78, at Mount Sinai Medical Center in Miami Beach, FL, of complications from heart failure. He was survived by his second wife, Lonna P. Carroll, three daughters: Nancy Bucher of Palm Springs, CA, Virginia Pomeroy of Germantown, WI, and Victoria Pomeroy of Germantown, TN as well as five grandchildren, four stepchildren and seven step-grandchildren, and three step great grandchildren. He was preceded in death by one daughter, Patricia Pomeroy. References "Wesley Pomeroy, 78, Security Chief at Woodstock, Dies,", New York Times, May 15, 1998 Wesley A. Pomeroy, Woodstock security chief , The Milwaukee Journal Sentinel, May 16, 1998 Death of Wes Pomeroy, Gordon E. Misner, May 15, 1998 Wes Pomeroy, 78, Former Berkeley Police Chief, Head of Security at Woodstock, DPF Director, Dies, San Francisco Chronicle, May 13, 1998 Community Policing as a Subject for Panetic Analysis , Pomeroy, Wesley, International Society of Panetics Pomeroy recalls 8 busy years, Shilstone, Bill, Redwood City Tribune, June 23, 1973, pg. 4 High in America, Patrick Anderson, 1981, The Viking Press, New York, Ch. 13 1968 Democratic Convention protests Woodstock, GoRockFest.com article Memorial: Wesley Pomeroy, Kevin Zeese, Common Sense for Drug Policy Foundation University of Minnesota, Board of Regents Minutes, 1970–1971 International Society of Panetics, Founding Members List National Organization For the Reform of Marijuana Laws, 1977 Advisory Board, National Families In Action 1920 births 1998 deaths People from Burbank, California Pacific Union College alumni United States Assistant Attorneys General American humanitarians United States Marine Corps personnel of World War II California lawyers American state police officers American deputy sheriffs Drug Enforcement Administration personnel American law enforcement officials American civil rights activists United States Marines 20th-century American politicians Activists from California 20th-century American lawyers 20th-century American Episcopalians
```objective-c /* * VLC.h * * Generated with * sdef /Applications/VLC.app | sdp -fh --basename VLC */ #import <AppKit/AppKit.h> #import <ScriptingBridge/ScriptingBridge.h> @class VLCItem, VLCApplication, VLCColor, VLCDocument, VLCWindow, VLCAttributeRun, VLCCharacter, VLCParagraph, VLCText, VLCAttachment, VLCWord, VLCPrintSettings; enum VLCSavo { VLCSavoAsk = 'ask ' /* Ask the user whether or not to save the file. */, VLCSavoNo = 'no ' /* Do not save the file. */, VLCSavoYes = 'yes ' /* Save the file. */ }; typedef enum VLCSavo VLCSavo; enum VLCEnum { VLCEnumStandard = 'lwst' /* Standard PostScript error handling */, VLCEnumDetailed = 'lwdt' /* print a detailed report of PostScript errors */ }; typedef enum VLCEnum VLCEnum; @protocol VLCGenericMethods - (void) closeSaving:(VLCSavo)saving savingIn:(NSURL *)savingIn; // Close an object. - (void) delete; // Delete an object. - (void) duplicateTo:(SBObject *)to withProperties:(NSDictionary *)withProperties; // Copy object(s) and put the copies at a new location. - (BOOL) exists; // Verify if an object exists. - (void) moveTo:(SBObject *)to; // Move object(s) to a new location. - (void) saveAs:(NSString *)as in:(NSURL *)in_; // Save an object. - (void) fullscreen; // Toggle between fullscreen and windowed mode. - (void) GetURL; // Get a URL - (void) mute; // Mute the audio - (void) next; // Go to the next item in the playlist or the next chapter in the DVD/VCD. - (void) OpenURL; // Open a URL - (void) play; // Start playing the current playlistitem or pause it when it is already playing. - (void) previous; // Go to the previous item in the playlist or the previous chapter in the DVD/VCD. - (void) stepBackward; // Step the current playlist item backward the specified step width (default is 2) (1=extraShort, 2=short, 3=medium, 4=long). - (void) stepForward; // Step the current playlist item forward the specified step width (default is 2) (1=extraShort, 2=short, 3=medium, 4=long). - (void) stop; // Stop playing the current playlistitem - (void) volumeDown; // Bring the volume down by one step. There are 32 steps from 0 to 400% volume. - (void) volumeUp; // Bring the volume up by one step. There are 32 steps from 0 to 400% volume. @end /* * Standard Suite */ // A scriptable object. @interface VLCItem : SBObject <VLCGenericMethods> @property (copy) NSDictionary *properties; // All of the object's properties. @end // An application's top level scripting object. @interface VLCApplication : SBApplication - (SBElementArray<VLCDocument *> *) documents; - (SBElementArray<VLCWindow *> *) windows; @property (readonly) BOOL frontmost; // Is this the frontmost (active) application? @property (copy, readonly) NSString *name; // The name of the application. @property (copy, readonly) NSString *version; // The version of the application. - (VLCDocument *) open:(NSURL *)x; // Open an object. - (void) print:(NSURL *)x printDialog:(BOOL)printDialog withProperties:(VLCPrintSettings *)withProperties; // Print an object. - (void) quitSaving:(VLCSavo)saving; // Quit an application. @end // A color. @interface VLCColor : VLCItem @end // A document. @interface VLCDocument : VLCItem @property (readonly) BOOL modified; // Has the document been modified since the last save? @property (copy) NSString *name; // The document's name. @property (copy) NSString *path; // The document's path. @end // A window. @interface VLCWindow : VLCItem @property NSRect bounds; // The bounding rectangle of the window. @property (readonly) BOOL closeable; // Whether the window has a close box. @property (copy, readonly) VLCDocument *document; // The document whose contents are being displayed in the window. @property (readonly) BOOL floating; // Whether the window floats. - (NSInteger) id; // The unique identifier of the window. @property NSInteger index; // The index of the window, ordered front to back. @property (readonly) BOOL miniaturizable; // Whether the window can be miniaturized. @property BOOL miniaturized; // Whether the window is currently miniaturized. @property (readonly) BOOL modal; // Whether the window is the application's current modal window. @property (copy) NSString *name; // The full title of the window. @property (readonly) BOOL resizable; // Whether the window can be resized. @property (readonly) BOOL titled; // Whether the window has a title bar. @property BOOL visible; // Whether the window is currently visible. @property (readonly) BOOL zoomable; // Whether the window can be zoomed. @property BOOL zoomed; // Whether the window is currently zoomed. @end /* * Text Suite */ // This subdivides the text into chunks that all have the same attributes. @interface VLCAttributeRun : VLCItem - (SBElementArray<VLCAttachment *> *) attachments; - (SBElementArray<VLCAttributeRun *> *) attributeRuns; - (SBElementArray<VLCCharacter *> *) characters; - (SBElementArray<VLCParagraph *> *) paragraphs; - (SBElementArray<VLCWord *> *) words; @property (copy) NSColor *color; // The color of the first character. @property (copy) NSString *font; // The name of the font of the first character. @property NSInteger size; // The size in points of the first character. @end // This subdivides the text into characters. @interface VLCCharacter : VLCItem - (SBElementArray<VLCAttachment *> *) attachments; - (SBElementArray<VLCAttributeRun *> *) attributeRuns; - (SBElementArray<VLCCharacter *> *) characters; - (SBElementArray<VLCParagraph *> *) paragraphs; - (SBElementArray<VLCWord *> *) words; @property (copy) NSColor *color; // The color of the first character. @property (copy) NSString *font; // The name of the font of the first character. @property NSInteger size; // The size in points of the first character. @end // This subdivides the text into paragraphs. @interface VLCParagraph : VLCItem - (SBElementArray<VLCAttachment *> *) attachments; - (SBElementArray<VLCAttributeRun *> *) attributeRuns; - (SBElementArray<VLCCharacter *> *) characters; - (SBElementArray<VLCParagraph *> *) paragraphs; - (SBElementArray<VLCWord *> *) words; @property (copy) NSColor *color; // The color of the first character. @property (copy) NSString *font; // The name of the font of the first character. @property NSInteger size; // The size in points of the first character. @end // Rich (styled) text @interface VLCText : VLCItem - (SBElementArray<VLCAttachment *> *) attachments; - (SBElementArray<VLCAttributeRun *> *) attributeRuns; - (SBElementArray<VLCCharacter *> *) characters; - (SBElementArray<VLCParagraph *> *) paragraphs; - (SBElementArray<VLCWord *> *) words; @property (copy) NSColor *color; // The color of the first character. @property (copy) NSString *font; // The name of the font of the first character. @property NSInteger size; // The size in points of the first character. @end // Represents an inline text attachment. This class is used mainly for make commands. @interface VLCAttachment : VLCText @property (copy) NSString *fileName; // The path to the file for the attachment @end // This subdivides the text into words. @interface VLCWord : VLCItem - (SBElementArray<VLCAttachment *> *) attachments; - (SBElementArray<VLCAttributeRun *> *) attributeRuns; - (SBElementArray<VLCCharacter *> *) characters; - (SBElementArray<VLCParagraph *> *) paragraphs; - (SBElementArray<VLCWord *> *) words; @property (copy) NSColor *color; // The color of the first character. @property (copy) NSString *font; // The name of the font of the first character. @property NSInteger size; // The size in points of the first character. @end /* * VLC suite */ // VLC's top level scripting object @interface VLCApplication (VLCSuite) @property NSInteger audioVolume; // The volume of the current playlist item from 0 to 4, where 4 is 400% @property NSInteger currentTime; // The current time of the current playlist item in seconds. @property (readonly) NSInteger durationOfCurrentItem; // The duration of the current playlist item in seconds. @property BOOL fullscreenMode; // indicates whether fullscreen is enabled or not @property (readonly) BOOL muted; // Is VLC currently muted? @property (copy, readonly) NSString *nameOfCurrentItem; // Name of the current playlist item. @property (copy, readonly) NSString *pathOfCurrentItem; // Path to the current playlist item. @property (readonly) BOOL playing; // Is VLC playing an item? @end /* * Type Definitions */ @interface VLCPrintSettings : SBObject <VLCGenericMethods> @property NSInteger copies; // the number of copies of a document to be printed @property BOOL collating; // Should printed copies be collated? @property NSInteger startingPage; // the first page of the document to be printed @property NSInteger endingPage; // the last page of the document to be printed @property NSInteger pagesAcross; // number of logical pages laid across a physical page @property NSInteger pagesDown; // number of logical pages laid out down a physical page @property (copy) NSDate *requestedPrintTime; // the time at which the desktop printer should print the document @property VLCEnum errorHandling; // how errors are handled @property (copy) NSString *faxNumber; // for fax number @property (copy) NSString *targetPrinter; // for target printer @end ```
Andrea Parkins is an American composer, sound artist, performer and improvisational musician based in New York. She is known for her inventive explorations on the electric accordion, generative sound processing, and arrangements of objects and sound. Parkins received a BFA from Tufts University and MFA from Mason Gross School of the Arts, Rutgers University. Parkins's work is influenced by the compositional strategies of John Cage and Fluxus and pays homage to musique concrète and 1970s analog synth. Parkins often incorporates electronically processed accordion, customized sound processing, live tape manipulation, analog effects boxes, laptop electronics, acoustic piano, sampling, and amplified objects. Her method and sound were characterized by LA Weekly as: “The big, varied, confidently conceived abstractions Parkins yanks from her squeezebox, laptop, effects devices and maybe piano — cloudy and cranky one minute, surgically sharp the next.” With an unconventional approach to instruments, Parkins “fragments the instrument's traditional vocabulary and expands its capabilities with electronics and extended techniques.” Recently Andrea Parkins has been developing a series of interactive sound and image works inspired by the structures of Rube Goldberg's circuitous machines. Describing this organizational approach Stephen Bezan remarked: “the individual sounds manipulated by Parkins seem to interact and influence the outcome of the other, crafting a goal-oriented structure based on timbre, not harmony or rhythm. This approach transcends the inherent cacophony of the material and reveals a genuinely organic, even playful quality to her work.” Parkins has described her Rube Goldberg approach as a means for examining slippages between object and meaning. She observed: “An important conceptual thread running through these pieces is the discovery and expression of metaphors for the slippage and tension between object and meaning that occurs through the passage of time.” Describing her intentions, Parkins noted: “As both a sonic and visual artist, I try to build and layer idiosyncratic systems and structures that point to these shifts in meaning.” Andrea Parkins has toured and exhibited internationally and has been presented at the Whitney Museum of American Art, The Kitchen, Experimental Intermedia, and Diapason Gallery for Sound and Intermedia. She has collaborated with musicians such as Nels Cline, Jim Black, Ellery Eskelin, David Watson, David Fenech, Fred Frith, Thomas Lehn, Günter Müller, and Otomo Yoshihide and choreographers Olive Bieringa and Otto Ramstad from the BodyCartography Project. Parkins has been the recipient of various grants, awards, and residencies including Meet the Composer, New York State Council for the Arts, Harvestworks Media Art Center, in New York City, Frei und Hanseastadt Hamburg Kulturbehoerde, in Germany, and CESTA in the Czech Republic. Partial discography One Great Day... (1996) Cast Iron Fact (1996) Slippage (1999) Downpour (2007) Cities and Eyes: The Skein (2008) Faulty (Broken Orbit) (2009) With Joe Morris Many Rings (Knitting Factory, 1999) With Nels Cline New Monastery (Cryptogramophone, 2006) References External links Official website MySpace Page of the musician Artist Page Soundcloud.com Year of birth missing (living people) Living people American women composers 21st-century American composers 21st-century American women musicians 21st-century women composers
```javascript var Blog = require("models/blog"); var randomString = require("./randomString"); var localPath = require("helper/localPath"); const fs = require("fs-extra"); const { join } = require("path"); const { promisify } = require("util"); const rebuild = promisify(require("sync/rebuild")); const checkEntry = require("./checkEntry"); module.exports = function (done) { var context = this; Blog.create(context.user.uid, { handle: randomString(16) }, function ( err, blog ) { if (err) { return done(new Error(err.handle)); } context.blogDirectory = localPath(blog.id, "/"); if (context.blogDirectory.slice(-1) === "/") context.blogDirectory = context.blogDirectory.slice(0, -1); context.blog = blog; context.blog.update = async (updates) => { await promisify(Blog.set)(context.blog.id, updates); }; context.blog.write = async ({ path, content }) => { await fs.outputFile(join(context.blogDirectory, path), content); }; context.blog.rebuild = async (options = {}) => await rebuild(context.blog.id, options); context.blog.check = async (entry) => await promisify(checkEntry(context.blog.id))(entry); done(err); }); }; ```
Bloodhawk (Lemuel Krug) is a fictional character appearing in American comic books published by Marvel Comics. The character was featured in X-Men 2099, one of the titles of Marvel's Marvel 2099 imprint. He sees himself as the lone protector of the desert he resides in, attacking all those he perceives as threats. Fictional character biography The only scene shown of Bloodhawk's past within the 2099 imprint is a memory of being experimented on in a bioshop. While being tortured for data on pain thresholds his mutant power surfaces, allowing him to turn into a reptilian skinned creature with talons and large wings. He uses his newfound strength to break his bonds and escape his captors. His first appearance within the story shows him a prisoner of the Synge Casino, about to be executed in a floorshow for damaging Synge transports hauling hazardous materials to desert dumpsites. Krystalin and Meanstreak arrive to rescue him and offer for him to join the new X-Men. Bloodhawk declines, preferring to work by himself to protect his desert home. After Synge enforcers raid the X-Men's mutant gathering, Bloodhawk leads them to a local dam for safety, as repayment for them rescuing him. As the X-Men confront Synge, Skullfire is knocked out one of the casino windows, where Bloodhawk flies in to save him (Bloodhawk saving falling X-Men becomes a bit of a running joke in the series). He joins the fight, during which his wing is broken by Junkpile, but subsequently healed by Xi'an's recently discovered secondary mutation. He stays with the X-Men for a short while longer, attending the funeral of Serpentine who died during the fight with Synge but then returns to the desert. Bloodhawk returns to a bunker which he uses as a weapons cache, where he is captured by La Lunatica. She brings him to the Darkroom of the Theatre of Pain, where she uses her mutant ability to make him relive painful memories, which are recorded by her master Controller Thirteen for the Theatre's amoral clientele. He is rescued by Skullfire, Krystalin and Meanstreak and accompanies them to New York. Together with Doom, Punisher, Spider-Man and Ravage, they defeat the Alchemax-created Aesir and save the floating city of Valhalla from falling on New York. Upon returning to Nevada, Bloodhawk separates from the X-Men again. He is next seen in the pages of Doom 2099, helping an old friend save the Savage Land from Alchemax drillers. Doom crash lands in the Savage Land, after fleeing an exploding space platform in an escape pod, and assists him. He returns to the Desert to find large footprints in the sand, which are saturated with radiation. He follows them and finds a malfunctioning 20-story tall robot, nicknamed "Monstrobot" by its owner, Jade Ryuteki, whose father had built it. He helps Jade disable the robot and set its self-repair subroutines to seal the leaks in its nuclear battery. Bloodhawk then finds Meanstreak and Krystalin (saving the latter from another fall) and travels with them to California to raid the Theatre of Pain's Floodgate facility and save the other X-Men. They successfully defeat the Theatre, and once again part ways, as the X-Men are hired as the protectors of the new mutant city-state Halo City. At some time during the X-Men's stay at Halo City, Bloodhawk is captured and taken to the Oasis, a paradise created by Ryu Kobolt, a past friend of Cerebra. Kobolt had built the Oasis to bring together a chosen few downtrodden citizens, who would be put into cryogenic stasis for 250 years, during which time a barrage of chemical warheads would destroy all other life on the planet. He is used to convince Cerebra, Luna and Skullfire of the Oasis' qualities, being controlled by Kobolt's assistant Pandora, who can use pheromones to alter perceptions. Together they stop this plan and destroy Kobolt and the Oasis. As this was a bookshelf edition standalone story it is not entirely clear where it fits into the storyline. However, it is inferred to be after they arrive in Halo city but before Shakti leaves the team. Once again, Bloodhawk is drawn into the X-Men's affairs as he rescues Metalhead and his girlfriend Rosa from robbers on the desert highway. He escorts them to Halo City, where Rosa's mutant baby, Joaquim, is captured by Vulcann the bloodsmith and forcefully aged. Bloodhawk fights alongside the X-Men to defeat Vulcann and save the inhabitants of the city from rising floodwaters as the polar icecaps melt. He joins them all in their escape to one of the only land masses left above water, the Savage Land. The Savage Land has become humanity's last refuge, with humans and mutants alike working to make the harsh environment livable. Bloodhawk, along with Nostromo, Willow, La Lunatica, Jade Ryuteki, Drew Hodge and scientist Mr. Winn form part of an exploration team into the jungles of the Savage Land. They find a spacecraft along with the body of the deceased pilot. Willow touches the alien to take its form and deactivate the self-destruct program, however she is unable to return to her normal form. At the same time, Doom's troops arrive to capture the Phalanx scout, which turns out to be Nostromo. Winn also reveals himself to be Phalanx and takes Nostromo to Latveria, to connect to the collective and assimilate the world. The others return to the surface, where they clash with one of the Phalanx assimilation node robots. They are triumphant and begin to construct the first living quarters in the last refuge as the series is cancelled. Powers and abilities Bloodhawk possesses mutant powers that allows him to transmorph into his recognizable red form with bat-like wings. In this state, he gained immense strength, stamina, durability, speed, agility, reflexes, and healing, hyper-keen senses, winged flight, natural weapons, and resistance to radiation. Other versions Timestorm 2009–2099 An alternate 2099 timeline reveals a new Bloodhawk as part of the X-Men led by an elderly, bald, one-armed Logan. This Bloodhawk is much the same in terms of appearance but is female and also possesses healing and destroying touch, much like Xi'an of the original 2099 imprint. Action figure A Bloodhawk action figure was made by Toy Biz as part of their X-Men 2099 line. References Comics characters introduced in 1993 Marvel 2099 characters Marvel Comics characters who can move at superhuman speeds Marvel Comics characters with accelerated healing Marvel Comics characters with superhuman durability or invulnerability Marvel Comics characters with superhuman strength Marvel Comics mutants Marvel Comics superheroes Characters created by John Francis Moore (writer)
James Ward won in the final 7–6(4), 4–6, 6–3, against Carsten Ball. Seeds Draw Final four Top half Bottom half References Main Draw Qualifying Draw 2009 ATP Challenger Tour 2009 Singles
Tarkeshwar also spelt "Tadkeshwar", is a town located in the Surat district, Gujarat, India, situated approximately away from Surat and on the Kim-Mandvi Road north of the Tapti River. It belongs to the Mandavi Taluka of Surat Panchayat, and is very close to Bharuch District. It has a population of about 15,000 people, with a slight majority of Vohra Gujarati Muslims and the remainder Hindus of various castes, including a number of Tribal Hindus. Most of the families are engaged in agriculture. History The town was previously a Rajput town called Bhim-Nagar derived from the name of Raja Bhima I of the Chaulukya dynasty, who ruled most of Gujarat at the time. During Sultan Mahmud of Ghazni's invasions into Gujarat, the town was both attacked and conquered by his armies, sometime between the years 1024-1026AD. Thirty-five thousand Ghaznavid soldiers are said to have conquered the town. This is attested by the fact that old stones can be found around the town with the name of the conqueror Sultan Mahmud Ghaznavi engraved on them. Since Sultan Mahmud of Ghazni was himself of Turkic origin and his armies consisted of Turks, Persians and Afghans from Afghanistan/Afghan Turkestan after the conquest the town became known as Turk-sar, which in the Turkic language means 'beset by the Turks'. Over time, the words combined to form "Tarkeshwar". Most of the town's original Hindu population were killed . Some Rajputs in the town are said to have converted to Islam. Some of his soldiers settled in the town and over time adopted the use of Rajput surnames or titles. The town has a subsequent history of foreign and local settlements including Parsis, Nakhudas and Pashtuns. Four mausoleums dedicated to Muslim saints surround the town at all four directions, and are said to give the town divine blessing. Two of the more famous saints are Maulana Nizamuddin Bajouri, an Afghan Pashtun from Bajour, who lived and died in Tadkeshwar in the 19th century; and his disciple Shaikh Moosaji Mehtar. Their graves are located together on a hill. Today, the majority of Tadkeshwar is populated by Muslims, and about 40% are Hindus. Places Tadkeshwar has a large and very old madrasa Darul uloom Falah-e-Darain, where hundreds of Muslim students from far afield as Sudan and Srinagar in India go to become ulama (alim) and qurrāʾ. The old mosque also contains an inscription in Persian language. The town has its own water works system and electricity and telephone networks are provided to the whole town. The town also has its own bazaar, high school, three hospitals and two graveyards with many old stones. Tadkeshwar also has two lignite mines and a canal. These mines were once rain forest which has large number of amber encased fossils. In 2014, 52 million-year-old amber encased fossil of a termite which thrived in ant colonies was discovered from lignite mines. It was the oldest known fossil of myrmecophily. The mausoleums of two saints Maulana Nizamuddin Bajouri, and Shaikh Moosaji Mehtar are also located in the village. The closest railhead is Kim. See also Muslim conquests in the Indian subcontinent Ghaznavid Empire List of tourist attractions in Surat References Suburban area of Surat Cities and towns in Surat district
Joana Beatriz Nunes Vicente Amaral Dias, widely referred to in the media as Joana Amaral Dias (born in Luanda, Angola, on 13 May 1975) is a Portuguese politician and clinical psychologist, with a master's degree in that area. She is the daughter of psychiatrist Carlos Amaral Dias. Besides clinical practice, university teaching and scientific research, she is the author of numerous papers and scholarly articles. In 2010 she published the book Maníacos de Qualidade ("Maniacs of Quality"), a biographical and psychological analysis of historical figures in Portugal. She was also one of the highest ranked party members of the Bloco de Esquerda (Left Block), although elected for member of the Portuguese Parliament as an independent (2002–2005). In the Portuguese presidential election, 2006 she was a supporter of Mário Soares with a mandate for the youth. She is also a columnist and political analyst. Joana Amaral Dias collaborated with the Diário de Notícias, TSF, SIC, and SIC Notícias. She authored the political column on RTP N and wrote in the newspaper Correio da Manhã and the blog Frontal Cortex. Personal life Joana Amaral Dias is daughter of Carlos Amaral Dias and Teresa Maria Nunes Vicente, both of them doctors. She attended the pharmacy program at the University of Coimbra as a freshwoman, however, she would graduate in psychology at the same university. She has a brother, Henrique, and a sister, Leonor. She is also half-sister of Carlota, from her father second marriage. Joana Amaral Dias is mother of a boy, Vicente, born in 1997 and girl, Luz born in 2016. Amaral Dias also formally adopted a boy in September 2019, though not many details have been released about the child. Controversies Joana is one of the standard bearers of the Covid vaccine skepticism in Portugal. She has propagated a narrative contrary to the medical and scientific consensus in her social media platforms, as well as on her regular TV appearances. Her position is based on the premise that most of the specialists are regularly lying, as it has been proved that many of them received directly or indirectly payments from big pharma, or exaggerate results, in order to advance their agenda. Being one of the main covid vaccine critics, she has made several false or decontextualized statements. She has asserted that the Covid-19 vaccine does not reduce contagion. She has stated that for people under 50 years old the vaccine is more dangerous than covid-19. The same logic is applied to her skepticism of climate change. In reaction to the record breaking heat wave in London, Joana wrote in Novo Semanário that in June 1885 and July 1886 temperatures had been higher at 162°F and 155°F respectively. It is unclear where she obtained those numbers, as they would be higher than any atmospheric temperature ever recorded. References Portuguese politicians Portuguese women writers 1973 births Living people University of Coimbra alumni Portuguese people of Angolan descent COVID-19 conspiracy theorists
The 2009 CSUB Roadrunners baseball team represented California State University, Bakersfield in the NCAA Division I baseball season of 2009. The 2009 season was the inaugural season for the Roadrunners in baseball, with CSUB beginning the transition from Division II to Division I in 2006, launching baseball in 2009, and completing the transition and eligible for the post season in 2011. A new stadium, Hardt Field, was built on the CSUB campus during the off-season and opened on opening day of the 2009 season. The team was managed by Bill Kernen. Pre-season In June 2006, CSUB president Horace Mitchell announced that CSUB would be moving to Division I, and entering a four-year reclassification process, which would require additional funds for the creation of a new baseball program. In August, 2008, before the schedule for Cal State Bakersfield's inaugural baseball season was released, coach Bill Kernen confirmed that the Roadrunners would play six games against Fresno State, the defending College World Series champion. August 2008 also marked the groundbreaking of CSUB's Hardt Field, construction of which was completed in 28 weeks. The Roadrunners strength of schedule (SOS) was ranked an astounding 19th in the country. Regular season CSUB entered the 2009 Baseball season with a competitive schedule, competing against multiple teams ranked in the top 30 in Collegiate Baseball poll, along with the 2008 National Champion Fresno State Bulldogs. CSUB opened the season at home against the St. Louis Billikens, in a three-game series which marked the first winning series for the Roadrunners, finishing 2–1 in the series. The second team faced by the Roadrunners was the UC Santa Barbara Gauchos, ranked #30 in the Collegiate Baseball poll, which resulted in a 10–0 loss. The 2009 Season found the team getting off to a .500 start in their first 6 games, including victories over St. Louis and Utah. However, after getting off to a good start, the Roadrunners went 1–14 in the month of March. During the course of the month, the Roadrunners met several in-state opponents, including San Jose State, St. Mary's, and San Francisco. The 'Runners also cemented a rivalry with the nearby Cal Poly Mustangs. The 'Runners also met their valley rivals, the Fresno State Bulldogs, winning one game of the three game series played in Beiden Field, and winning the first game of the homestand in a come from behind win, by a score of 17–12. The Roadrunners' 4-3 victory over the Bulldogs on April 4 marked the first time that a first-year NCAA Division I baseball program defeated the defending College World Series champions. Roster Coaches Players (Inaugural Roster, 2009) Schedule and results |- align="center" bgcolor="#FFE6E6" | 1 || February 20 || || 7–8 || Hardt Field || Turmail (1–0) || Jannis (0–1) || || 900 || 0–1 |- align="center" bgcolor="#D8FFEB" | 2 || February 21 || Saint Louis || 4–2 || Hardt Field || Draxton (1–0) || Sever (0–1) || Medina (1) || 500 || 1–1 |- align="center" bgcolor="#D8FFEB" | 3 || February 21 || Saint Louis || 8–4 || Hardt Field || Montoya (1–0) || Buckham (0–1) || || 500 || 2–1 |- align="center" bgcolor="FFE6E6" | 4 || February 22 || #30 || 0–10 || Hardt Field || Hollands (1–0) || Jones (0–1) || || 629 || 2–2 |- align="center" bgcolor="FFE6E6" | 5 || February 22 || || 1–12 || Hardt Field || Budrow (1–0) || Jannis (0–2) || || 365 || 2–3 |- align="center" bgcolor="#D8FFEB" | 7 || February 28 || Utah || 10–8 || Hardt Field || Kudlock (1–0) || Askew (0–1) || Medina (2) || 514 || 3–3 |- align="center" bgcolor="FFE6E6" | 8 || February 28 || Utah || 6–7 || Hardt Field || Streich (1–0) || Medina (0–1) || || 514 || 3–4 |- align="center" bgcolor="#FFE6E6" | 9 || March 9 || || 6–7 || Beiden Field || Anderson (2–2) || Messmore (0–1) || || || 3–5 |- align="center" bgcolor="#FFE6E6" | 10 || March 10 || || 1–16 || Beiden Field || Benny (1–1) || Draxton (1–1) || Morse (1) || 2017 || 3–6 |- align="center" bgcolor="#D8FFEB" | 11 || March 11 || || 9–7 || Beiden Field || Montoya (2–0) || Varce (1–3) || Valenzuela (1) || || 4–6 |- align="center" bgcolor="FFE6E6" | 13 || March 12 || Buffalo || 10–23 || Beiden Field || Ciesla(1–1) || Medina (0–2) || || || 4–7 |- align="center" bgcolor="#FFE6E6" | 14 || March 13 || Fresno State || 2–3 || Beiden Field || Sprague (2–0) || Branske (0–1) || Bischoff (1) || 2575 || 4–9 |- align="center" bgcolor="#FFE6E6" | 15 || March 14 || Portland || 6–10 || Beiden Field || Brynteson (1–0) || Branske (0–2) || || || 4–10 |- align="center" bgcolor="#FFE6E6" | 16 || March 20 || || 2–6 || Baggett Stadium || Eskew (4–1) || Jannis (0–3) || || 1012 || 4–11 |- align="center" bgcolor="#FFE6E6" | 17 || March 21 || Cal Poly || 3–15 || Baggett Stadium || Leonard (3–0) || Draxton (1–2) || Radeke (1) || 1063 || 4–12 |- align="center" bgcolor="#FFE6E6" | 18 || March 22 || Cal Poly || 2–10 || Hardt Field || Mauldin (3–1) || Montoya (2–1) || || 638 || 4–13 |- align="center" bgcolor="#FFE6E6" | 19 || March 23 || Cal Poly || 15–18 || Hardt Field || DeVincenzi (2–0) || Jones (0–3) || Massingham (2) || 398 || 4–14 |- align="center" bgcolor="#FFE6E6" | 20 || March 27 || || 4–8 || Municipal Stadium || Berner (5–0) || Jannis (0–4) || || 401 || 4–15 |- align="center" bgcolor="#FFE6E6" | 21 || March 28 || San Jose State || 10–13 || Municipal Stadium || Peterson (5–0) || Montoya (2–2) || || 535 || 4–16 |- align="center" bgcolor="#FFE6E6" | 22 || March 29 || San Jose State || 2–17 || Municipal Stadium || Sobczak (4–0) || Van Dam (0–1) || || 420 || 4–17 |- align="center" bgcolor="#FFE6E6" | 23 || March 30 || || 1–3 || Louis Guisto Field || Reid (2–3) || Draxton (1–3) || Berl (4) || 88 || 4–18 |- align="center" bgcolor="#FFE6E6" | 24 || April 1 || || 4–5 || Hardt Field || Oropeza (1–1) || Jones (0–4) || Mott (1) || 299 || 4–19 |- align="center" bgcolor="#FFE6E6" | 25 || April 3 || Fresno State || 8–9 || Beiden Field || Kendall (1–0) || Jannis (0–5) || Sprague (1) || 1951 || 4–20 |- align="center" bgcolor="#D8FFEB" | 26 || April 4 || Fresno State || 4–3 || Beiden Field || Montoya (3–2) || Garrison (4–2) || || 2036 || 5–20 |- align="center" bgcolor="#FFE6E6" | 27 || April 5 || Fresno State || 2–9 || Beiden Field || Sprague (3–0) || Draxton (1–4) || || 2158 || 5–21 |- align="center" bgcolor="#D8FFEB" | 28 || April 7 || Fresno State || 17–12 || Hardt Field || Messmore (1–1) || Bischoff (1–4) || || 707 || 6–21 |- align="center" bgcolor="#D8FFEB" | 29 || April 8 || Fresno State || 3–2 || Hardt Field || Medina (1–2) || Escat (0–1) || || 704 || 7–21 |- align="center" bgcolor="#FFE6E6" | 30 || April 9 || || 2–10 || Hardt Field || Bargas (4–2) || Jannis (0–6) || || 369 || 7–22 |- align="center" bgcolor="#FFE6E6" | 31 || April 10 || UC Riverside || 1–6 || Hardt Field || Andriese (3–1) || Montoya (3–3) || || 347 || 7–23 |- align="center" bgcolor="#D8FFEB" | 32 || April 11 || UC Riverside || 9–7 || Hardt Field || Medina (1–2) || Dickey (3–3) || || 493 || 8–23 |- align="center" bgcolor="#FFE6E6" | 33 || April 14 || || 1–3 || Matador Field || Tremlin (4–1) || Van Dam (1–1) || Slover (4) || 137 || 8–24 |- align="center" bgcolor="#FFE6E6" | 34 || April 15 || UC Santa Barbara || 7–8 || Caesar Uyesaka Stadium || Ford (4–3) || Draxton (1–5) || || 126 || 8–25 |- align="center" bgcolor="#FFE6E6" | 35 || April 21 || UC Santa Barbara || 2–17 || Hardt Field || Meaux (3–0) || Draxton (1–6) || || 341 || 8–26 |- align="center" bgcolor="#FFE6E6" | 36 || April 24 || || 6–7 || Peccole Park || Graham (2–2) || Messmore (1–2) || || 588 || 8–27 |- align="center" bgcolor="#FFE6E6" | 37 || April 25 || Nevada || 4–9 || Peccole Park || Garcia (3–4) || Montoya (3–4) || || 675 || 8–28 |- align="center" bgcolor="#FFE6E6" | 38 || April 26 || Nevada || 6–13 || Peccole Park || Achelpohl (4–3) || Jannis (0–7) || || 904 || 8–29 |-align="center" bgcolor="#D8FFEB" | 39 || April 28 || UC Santa Barbara || 8–6 || Caesar Uyesaka Stadium || Messmore (2–2) || Meals (2–2) || || 203 || 9–29 |- align="center" bgcolor="#FFE6E6" | 40 || April 29 || || 2–13 || Hardt Field || McClintick (4–1) || Van Dam (0–3) || || 384 || 9–30 |- align="center" bgcolor="#FFE6E6" | 41 || May 5 || UCLA || 2–15 || Jackie Robinson Stadium || Claypool (2–1) || Montoya (3–5) || || 531 || 9–31 |- align="center" bgcolor="#FFE6E6" | 42 || May 8 || || 6–9 || Hawks Field || Nesseth (4–4) || Medina (2–3) || || 2853 || 9–32 |-align="center" bgcolor="#D8FFEB" | 43 || May 9 || Nebraska || 10–8 || Hawks Field || Jannis (1–7) || Rose (1–3) || || 2527 || 10–32 |-align="center" bgcolor="#D8FFEB" | 44 || May 10 || Nebraska || 8–7 || Hawks Field || Montoya (4–5) || Yost (1–5) || Draxton (1) || 1832 || 11–32 |- Rankings The 'Runners have yet to be ranked, and are ineligible for the post season until 2011. Awards and honors Erik Draxton and Jason Kudlock were selected to the All-Independent Academic Team in 2009. Erik Draxton had a 3.42 gpa in Business Administration. Jason Kudlock had a 3.38 gpa in Psychology. Major League Baseball Draft In CSUB's first year of eligible draftees, the first three baseball players in CSUB's short history (2nd year) were selected in the 2010 MLB Draft. Zach Arneson was selected by the San Francisco Giants in the 21st round as the 648th pick. Jason Kudlock was selected by the Texas Rangers in the 36th round as the 1096th pick. Finally, Mickey Jannis was selected by the Tampa Bay Rays as the 1331th pick. References External links CSUB Baseball Schedule @ GoRunners.com CSUB Baseball Roster @ GoRunners.com Cal State Bakersfield Roadrunners baseball seasons Cal State Bakersfield
```smalltalk namespace Veldrid.MetalBindings { public enum MTLBlendFactor { Zero = 0, One = 1, SourceColor = 2, OneMinusSourceColor = 3, SourceAlpha = 4, OneMinusSourceAlpha = 5, DestinationColor = 6, OneMinusDestinationColor = 7, DestinationAlpha = 8, OneMinusDestinationAlpha = 9, SourceAlphaSaturated = 10, BlendColor = 11, OneMinusBlendColor = 12, BlendAlpha = 13, OneMinusBlendAlpha = 14, Source1Color = 15, OneMinusSource1Color = 16, Source1Alpha = 17, OneMinusSource1Alpha = 18, } } ```
Thurgoland Tunnel is a double-bore abandoned railway tunnel between Penistone and Wortley. Its total length is . The original tunnel, a single bore carrying two tracks, was opened in 1845 on the Sheffield, Ashton-Under-Lyne and Manchester Railway between Manchester Store Street and Sheffield. It is characterised by a curve of radius on a falling gradient of 1 in 131. Due to the difficulties in laying the original tunnel out, it consists of a series of straight sections in a series of erratic curves varying in radius from . Maximum clearance was only obtained by reducing the normal six-foot spacing between the tracks. Because of the clearance problems the original construction caused for the planned LNER electrification, and because opening-out was deemed too expensive, in 1948 a second single-line tunnel was built for the up line and the old tunnel was converted to carry only the down line. As this project was begun in 1947 just before railway nationalisation (British Railways), each of the up tunnel portals host twin dates, with "LNER 1947" inscribed in the central parapet panel at the top of the portals and "BR 1948" below in the keystone. Due to the anticipated interim period of steam working before the new electric Woodhead 3 tunnel was completed, a cast-iron smokeplate lined the roof of the tunnel to protect the concrete lining. Electric working commenced in 1954 and ceased in 1981. The tunnels ceased to carry trains in 1983 when the local Sheffield–Huddersfield train service was diverted via Barnsley. The up tunnel, being much newer, has been re-utilised for a walking trail, whilst the down bore has been blocked off. See also Manchester-Sheffield-Wath electric railway References External links Photo showing dual dates on one portal Railway tunnels in England Woodhead Line Tunnels completed in 1845 Tunnels in South Yorkshire Thurgoland
An oral torus is a lesion made of compact bone and occurs along the palate or the mandible inside the mouth. The palatal torus or torus palatinus occurs along the palate, close to the midline, whereas the mandibular torus or torus mandibularis occur along the lingual side of the mandible. Occurrences of tori are more frequent in women than in men. Tori are associated with adulthood and rarely appear before the age of 15. The palatal version of tori have a higher occurrence in Native American and Inuit populations. Treatment is not necessary unless they become an obstruction to chewing or prosthetic appliances. References Ibsen, Olga A.C. & Joan Anderson Phelan, 2004. Oral Pathology for the Dental Hygienist. 4th edition. Philadelphia, Saunders. . Jaw disorders
"Glass Enclosure" (occasionally "The Glass Enclosure") is a composition by jazz pianist Bud Powell. The first recording was Powell's version for Blue Note Records in 1953, which was released as part of the album The Amazing Bud Powell, Vol. 2 the following year. It was also released as one side of a single, with "I Want to Be Happy". Background Powell had been in a mental institution until six months before the recording session. He was contracted to play at the Birdland jazz club in New York, and its manager was Powell's legal guardian. He kept Powell locked in an apartment to ensure that the pianist would play at the club. According to Blue Note producer Alfred Lion, who went to the apartment one day, "There was a piano there and [Powell] played me some new things. One piece really stood out. I asked him what he called it. He looked around the apartment and said, 'Glass Enclosure'." Alternative explanations for the title have been proposed by critic Kevin Whitehead: it could have been for the announcer's booth that was beside the stage at Birdland, "or maybe the invisible box that walled Bud off like a trapped mime." Composition and performance "Glass Enclosure" is stylistically different from Powell's typical compositions, which were often more conventional bebop numbers. Leonard Feather wrote in the original album liner notes that "'Glass Enclosure' is more or less in four movements: the first somewhat maestoso, the next a swinging format on two 10-bar phrases: then a pensive yet flowing movement with a stirring bowed-bass underline, followed by a reminder of the first movement". Author Francis Davis states that "'Glass Enclosure' juxtaposes to harrowing effect an agitated blues riff and a ten-bar fanfare". It "runs through a sequence of abrupt changes of mood and direction", described by critic Kenny Mathieson as "disturbing, unsettling fantasia". The musicians for the original performance were Powell (piano), George Duvivier (bass), and Art Taylor (drums). Duvivier had taken over as the bassist in Powell's trio probably around a month before the recording. Davis indicated that the piece was entirely composed, while Mathieson suggested that the composition leaves "little scope for improvisation". Legacy Davis suggested that "This piece has to be played Powell's way or not at all, which explains why it's so rarely performed." Powell himself also played the piece in public. Saxophonist Wayne Shorter was influenced by the more advanced harmonies used in "Glass Enclosure" and other Powell compositions from the 1950s in his own writing of music. A Shorter biographer observed that, although "jazz musicians didn't start playing Lydian augmented chords with any frequency until the 1960s, Bud Powell played a few on 'The Glass Enclosure' in the early fifties" (Powell's 1951 "Un Poco Loco" also used lydian chords). References 1954 songs American jazz songs Compositions by Bud Powell
Free in Deed is a 2015 American-New Zealand drama film directed by Jake Mahaffy. It was won the award for Best Film in the Horizons section of the 72nd Venice International Film Festival. Cast David Harewood as Abe Wilkins Edwina Findley as Melva Neddy RaJay Chandler as Benny Kathy Smith as Pearlie Porsha Ferguson as Church Member Prophetess Libra as Mother Preston Shannon as Bishop References External links 2015 films 2015 drama films American drama films New Zealand drama films 2010s English-language films 2010s American films
Javier "Javi" Flores Santacruz (; born 9 February 1986) is a Spanish footballer who plays for Córdoba CF as an attacking midfielder. He started and finished his professional career with Córdoba, amassing Segunda División totals of 123 games and five goals over six seasons for that club and Elche. He appeared once in La Liga with the latter. Club career Born in Córdoba, Andalusia, Flores spent his entire youth career with Córdoba CF, and made his senior debut with their reserves in the 2004–05 season. He was promoted to the main squad the following year, and achieved promotion to the Segunda División in 2007. Flores missed most of the 2007–08 campaign due to injury, and only played his first match as a professional on 16 March 2008, coming on as a late substitute in a 1–1 away draw against UD Salamanca. He was regularly used subsequently, being released in July 2011. On 1 September 2011, Flores joined Segunda División B team Getafe CF B. After scoring a career-best ten goals in his only season, he signed with Elche CF of the second division. On 5 August 2012, during a friendly with AD Alcorcón, Flores suffered a knee injury which kept him sidelined until April of the following year. He made his La Liga debut on the last day of 2013–14, featuring 73 minutes in the 3–1 away loss to Sevilla FC. On 4 June 2014, Flores terminated his contract with the Valencians and moved to third-tier club Real Murcia on 2 September. He returned to Elche in 2017, after a two-year spell at Hércules CF in the same league. Flores returned to the Estadio Nuevo Arcángel in the summer of 2019, after the team had just been relegated to division three. References External links 1986 births Living people Footballers from Córdoba, Spain Spanish men's footballers Men's association football midfielders La Liga players Segunda División players Segunda División B players Primera Federación players Segunda Federación players Divisiones Regionales de Fútbol players Córdoba CF B players Córdoba CF players Getafe CF B players Elche CF players Real Murcia CF players Hércules CF players
```c /** ****************************************************************************** * @file stm32f7xx_hal_jpeg.c * @author MCD Application Team * @brief JPEG HAL module driver. * This file provides firmware functions to manage the following * functionalities of the JPEG encoder/decoder peripheral: * + Initialization and de-initialization functions * + JPEG processing functions encoding and decoding * + JPEG decoding Getting Info and encoding configuration setting * + JPEG enable/disable header parsing functions (for decoding) * + JPEG Input/Output Buffer configuration. * + JPEG callback functions * + JPEG Abort/Pause/Resume functions * + JPEG custom quantization tables setting functions * + IRQ handler management * + Peripheral State and Error functions * @verbatim ============================================================================== ##### How to use this driver ##### ============================================================================== [..] (#) Initialize the JPEG peripheral using HAL_JPEG_Init : No initialization parameters are required. Only the call to HAL_JPEG_Init is necessary to initialize the JPEG peripheral. (#) If operation is JPEG encoding use function HAL_JPEG_ConfigEncoding to set the encoding parameters (mandatory before calling the encoding function). the application can change the encoding parameter ImageQuality from 1 to 100 to obtain a more or less quality (visual quality vs the original row image), and inversely more or less jpg file size. (#) Note that for decoding operation the JPEG peripheral output data are organized in YCbCr blocks called MCU (Minimum Coded Unit) as defioned in the JPEG specification ISO/IEC 10918-1 standard. It is up to the application to transform these YCbCr blocks to RGB data that can be display. Respectively, for Encoding operation the JPEG peripheral input should be organized in YCbCr MCU blocks. It is up to the application to perform the necessary RGB to YCbCr MCU blocks transformation before feeding the JPEG peripheral with data. (#) Use functions HAL_JPEG_Encode and HAL_JPEG_Decode to start respectively a JPEG encoding/decoding operation in polling method (blocking). (#) Use functions HAL_JPEG_Encode_IT and HAL_JPEG_Decode_IT to start respectively a JPEG encoding/decoding operation with Interrupt method (not blocking). (#) Use functions HAL_JPEG_Encode_DMA and HAL_JPEG_Decode_DMA to start respectively a JPEG encoding/decoding operation with DMA method (not blocking). (#) Callback HAL_JPEG_InfoReadyCallback is asserted if the current operation is a JPEG decoding to provide the application with JPEG image parameters. This callback is asserted when the JPEG peripheral successfully parse the JPEG header. (#) Callback HAL_JPEG_GetDataCallback is asserted for both encoding and decoding operations to inform the application that the input buffer has been consumed by the peripheral and to ask for a new data chunk if the operation (encoding/decoding) has not been complete yet. (++) This CallBack should be implemented in the application side. It should call the function HAL_JPEG_ConfigInputBuffer if new input data are available, or call HAL_JPEG_Pause with parameter XferSelection set to JPEG_PAUSE_RESUME_INPUT to inform the JPEG HAL driver that the ongoing operation shall pause waiting for the application to provide a new input data chunk. Once the application succeed getting new data and if the input has been paused, the application can call the function HAL_JPEG_ConfigInputBuffer to set the new input buffer and size, then resume the JPEG HAL input by calling new function HAL_JPEG_Resume. If the application has ended feeding the HAL JPEG with input data (no more input data), the application Should call the function HAL_JPEG_ConfigInputBuffer (within the callback HAL_JPEG_GetDataCallback) with the parameter InDataLength set to zero. (++) The mechanism of HAL_JPEG_ConfigInputBuffer/HAL_JPEG_Pause/HAL_JPEG_Resume allows to the application to provide the input data (for encoding or decoding) by chunks. If the new input data chunk is not available (because data should be read from an input file for example) the application can pause the JPEG input (using function HAL_JPEG_Pause) Once the new input data chunk is available ( read from a file for example), the application can call the function HAL_JPEG_ConfigInputBuffer to provide the HAL with the new chunk then resume the JPEG HAL input by calling function HAL_JPEG_Resume. (++) The application can call functions HAL_JPEG_ConfigInputBuffer then HAL_JPEG_Resume. any time (outside the HAL_JPEG_GetDataCallback) Once the new input chunk data available. However, to keep data coherency, the function HAL_JPEG_Pause must be imperatively called (if necessary) within the callback HAL_JPEG_GetDataCallback, i.e when the HAL JPEG has ended Transferring the previous chunk buffer to the JPEG peripheral. (#) Callback HAL_JPEG_DataReadyCallback is asserted when the HAL JPEG driver has filled the given output buffer with the given size. (++) This CallBack should be implemented in the application side. It should call the function HAL_JPEG_ConfigOutputBuffer to provide the HAL JPEG driver with the new output buffer location and size to be used to store next data chunk. if the application is not ready to provide the output chunk location then it can call the function HAL_JPEG_Pause with parameter XferSelection set to JPEG_PAUSE_RESUME_OUTPUT to inform the JPEG HAL driver that it shall pause output data. Once the application is ready to receive the new data chunk (output buffer location free or available) it should call the function HAL_JPEG_ConfigOutputBuffer to provide the HAL JPEG driver with the new output chunk buffer location and size, then call HAL_JPEG_Resume to inform the HAL that it shall resume outputting data in the given output buffer. (++) The mechanism of HAL_JPEG_ConfigOutputBuffer/HAL_JPEG_Pause/HAL_JPEG_Resume allows the application to receive data from the JPEG peripheral by chunks. when a chunk is received, the application can pause the HAL JPEG output data to be able to process these received data (YCbCr to RGB conversion in case of decoding or data storage in case of encoding). (++) The application can call functions HAL_JPEG_ ConfigOutputBuffer then HAL_JPEG_Resume. any time (outside the HAL_JPEG_DataReadyCallback) Once the output data buffer is free to use. However, to keep data coherency, the function HAL_JPEG_Pause must be imperatively called (if necessary) within the callback HAL_JPEG_ DataReadyCallback, i.e when the HAL JPEG has ended Transferring the previous chunk buffer from the JPEG peripheral to the application. (#) Callback HAL_JPEG_EncodeCpltCallback is asserted when the HAL JPEG driver has ended the current JPEG encoding operation, and all output data has been transmitted to the application. (#) Callback HAL_JPEG_DecodeCpltCallback is asserted when the HAL JPEG driver has ended the current JPEG decoding operation. and all output data has been transmitted to the application. (#) Callback HAL_JPEG_ErrorCallback is asserted when an error occurred during the current operation. the application can call the function HAL_JPEG_GetError() to retrieve the error codes. (#) By default the HAL JPEG driver uses the default quantization tables as provide in the JPEG specification (ISO/IEC 10918-1 standard) for encoding. User can change these default tables if necessary using the function HAL_JPEG_SetUserQuantTables Note that for decoding the quantization tables are automatically extracted from the JPEG header. (#) To control JPEG state you can use the following function: HAL_JPEG_GetState() *** JPEG HAL driver macros list *** ============================================= [..] Below the list of most used macros in JPEG HAL driver. (+) __HAL_JPEG_RESET_HANDLE_STATE : Reset JPEG handle state. (+) __HAL_JPEG_ENABLE : Enable the JPEG peripheral. (+) __HAL_JPEG_DISABLE : Disable the JPEG peripheral. (+) __HAL_JPEG_GET_FLAG : Check the specified JPEG status flag. (+) __HAL_JPEG_CLEAR_FLAG : Clear the specified JPEG status flag. (+) __HAL_JPEG_ENABLE_IT : Enable the specified JPEG Interrupt. (+) __HAL_JPEG_DISABLE_IT : Disable the specified JPEG Interrupt. (+) __HAL_JPEG_GET_IT_SOURCE : returns the state of the specified JPEG Interrupt (Enabled or disabled). *** Callback registration *** ============================================= The compilation define USE_HAL_JPEG_REGISTER_CALLBACKS when set to 1 allows the user to configure dynamically the driver callbacks. Use Functions HAL_JPEG_RegisterCallback() or HAL_JPEG_RegisterXXXCallback() to register an interrupt callback. Function HAL_JPEG_RegisterCallback() allows to register following callbacks: (+) EncodeCpltCallback : callback for end of encoding operation. (+) DecodeCpltCallback : callback for end of decoding operation. (+) ErrorCallback : callback for error detection. (+) MspInitCallback : JPEG MspInit. (+) MspDeInitCallback : JPEG MspDeInit. This function takes as parameters the HAL peripheral handle, the Callback ID and a pointer to the user callback function. For specific callbacks InfoReadyCallback, GetDataCallback and DataReadyCallback use dedicated register callbacks : respectively HAL_JPEG_RegisterInfoReadyCallback(), HAL_JPEG_RegisterGetDataCallback() and HAL_JPEG_RegisterDataReadyCallback(). Use function HAL_JPEG_UnRegisterCallback() to reset a callback to the default weak function. HAL_JPEG_UnRegisterCallback() takes as parameters the HAL peripheral handle, and the Callback ID. This function allows to reset following callbacks: (+) EncodeCpltCallback : callback for end of encoding operation. (+) DecodeCpltCallback : callback for end of decoding operation. (+) ErrorCallback : callback for error detection. (+) MspInitCallback : JPEG MspInit. (+) MspDeInitCallback : JPEG MspDeInit. For callbacks InfoReadyCallback, GetDataCallback and DataReadyCallback use dedicated unregister callbacks : respectively HAL_JPEG_UnRegisterInfoReadyCallback(), HAL_JPEG_UnRegisterGetDataCallback() and HAL_JPEG_UnRegisterDataReadyCallback(). By default, after the HAL_JPEG_Init() and when the state is HAL_JPEG_STATE_RESET all callbacks are set to the corresponding weak functions : examples HAL_JPEG_DecodeCpltCallback() , HAL_JPEG_GetDataCallback(). Exception done for MspInit and MspDeInit functions that are reset to the legacy weak function in the HAL_JPEG_Init()/ HAL_JPEG_DeInit() only when these callbacks are null (not registered beforehand). if not, MspInit or MspDeInit are not null, the HAL_JPEG_Init() / HAL_JPEG_DeInit() keep and use the user MspInit/MspDeInit functions (registered beforehand) Callbacks can be registered/unregistered in HAL_JPEG_STATE_READY state only. Exception done MspInit/MspDeInit callbacks that can be registered/unregistered in HAL_JPEG_STATE_READY or HAL_JPEG_STATE_RESET state, thus registered (user) MspInit/DeInit callbacks can be used during the Init/DeInit. In that case first register the MspInit/MspDeInit user callbacks using HAL_JPEG_RegisterCallback() before calling HAL_JPEG_DeInit() or HAL_JPEG_Init() function. When The compilation define USE_HAL_JPEG_REGISTER_CALLBACKS is set to 0 or not defined, the callback registration feature is not available and all callbacks are set to the corresponding weak functions. @endverbatim ****************************************************************************** * @attention * * All rights reserved.</center></h2> * * This software component is licensed by ST under BSD 3-Clause license, * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Includes your_sha256_hash--*/ #include "stm32f7xx_hal.h" /** @addtogroup STM32F7xx_HAL_Driver * @{ */ /** @defgroup JPEG JPEG * @brief JPEG HAL module driver. * @{ */ #ifdef HAL_JPEG_MODULE_ENABLED #if defined (JPEG) /* Private define ------------------------------------------------------------*/ /** @addtogroup JPEG_Private_Constants * @{ */ #define JPEG_TIMEOUT_VALUE ((uint32_t)1000) /* 1s */ #define JPEG_AC_HUFF_TABLE_SIZE ((uint32_t)162) /* Huffman AC table size : 162 codes*/ #define JPEG_DC_HUFF_TABLE_SIZE ((uint32_t)12) /* Huffman AC table size : 12 codes*/ #define JPEG_FIFO_SIZE ((uint32_t)16U) /* JPEG Input/Output HW FIFO size in words*/ #define JPEG_FIFO_TH_SIZE ((uint32_t)4U) /* JPEG Input/Output HW FIFO Threshold in words*/ #define JPEG_DMA_MASK ((uint32_t)0x00001800) /* JPEG DMA request Mask*/ #define JPEG_DMA_IDMA ((uint32_t)JPEG_CR_IDMAEN) /* DMA request for the input FIFO */ #define JPEG_DMA_ODMA ((uint32_t)JPEG_CR_ODMAEN) /* DMA request for the output FIFO */ #define JPEG_INTERRUPT_MASK ((uint32_t)0x0000007EU) /* JPEG Interrupt Mask*/ #define JPEG_CONTEXT_ENCODE ((uint32_t)0x00000001) /* JPEG context : operation is encoding*/ #define JPEG_CONTEXT_DECODE ((uint32_t)0x00000002) /* JPEG context : operation is decoding*/ #define JPEG_CONTEXT_OPERATION_MASK ((uint32_t)0x00000003) /* JPEG context : operation Mask */ #define JPEG_CONTEXT_POLLING ((uint32_t)0x00000004) /* JPEG context : Transfer use Polling */ #define JPEG_CONTEXT_IT ((uint32_t)0x00000008) /* JPEG context : Transfer use Interrupt */ #define JPEG_CONTEXT_DMA ((uint32_t)0x0000000C) /* JPEG context : Transfer use DMA */ #define JPEG_CONTEXT_METHOD_MASK ((uint32_t)0x0000000C) /* JPEG context : Transfer Mask */ #define JPEG_CONTEXT_CONF_ENCODING ((uint32_t)0x00000100) /* JPEG context : encoding config done */ #define JPEG_CONTEXT_PAUSE_INPUT ((uint32_t)0x00001000) /* JPEG context : Pause Input */ #define JPEG_CONTEXT_PAUSE_OUTPUT ((uint32_t)0x00002000) /* JPEG context : Pause Output */ #define JPEG_CONTEXT_CUSTOM_TABLES ((uint32_t)0x00004000) /* JPEG context : Use custom quantization tables */ #define JPEG_CONTEXT_ENDING_DMA ((uint32_t)0x00008000) /* JPEG context : ending with DMA in progress */ #define JPEG_PROCESS_ONGOING ((uint32_t)0x00000000) /* Process is on going */ #define JPEG_PROCESS_DONE ((uint32_t)0x00000001) /* Process is done (ends) */ /** * @} */ /* Private typedef -----------------------------------------------------------*/ /** @addtogroup JPEG_Private_Types * @{ */ /* JPEG Huffman Table Structure definition : This implementation of Huffman table structure is compliant with ISO/IEC 10918-1 standard , Annex C Huffman Table specification */ typedef struct { /* These two fields directly represent the contents of a JPEG DHT marker */ uint8_t Bits[16]; /*!< bits[k] = # of symbols with codes of length k bits, this parameter corresponds to BITS list in the Annex C */ uint8_t HuffVal[162]; /*!< The symbols, in order of incremented code length, this parameter corresponds to HUFFVAL list in the Annex C */ } JPEG_ACHuffTableTypeDef; typedef struct { /* These two fields directly represent the contents of a JPEG DHT marker */ uint8_t Bits[16]; /*!< bits[k] = # of symbols with codes of length k bits, this parameter corresponds to BITS list in the Annex C */ uint8_t HuffVal[12]; /*!< The symbols, in order of incremented code length, this parameter corresponds to HUFFVAL list in the Annex C */ } JPEG_DCHuffTableTypeDef; typedef struct { uint8_t CodeLength[JPEG_AC_HUFF_TABLE_SIZE]; /*!< Code length */ uint32_t HuffmanCode[JPEG_AC_HUFF_TABLE_SIZE]; /*!< HuffmanCode */ } JPEG_AC_HuffCodeTableTypeDef; typedef struct { uint8_t CodeLength[JPEG_DC_HUFF_TABLE_SIZE]; /*!< Code length */ uint32_t HuffmanCode[JPEG_DC_HUFF_TABLE_SIZE]; /*!< HuffmanCode */ } JPEG_DC_HuffCodeTableTypeDef; /** * @} */ /* Private macro -------------------------------------------------------------*/ /** @addtogroup JPEG_Private_Macros * @{ */ #define JPEG_ENABLE_DMA(__HANDLE__,__DMA__) ((__HANDLE__)->Instance->CR |= ((__DMA__) & JPEG_DMA_MASK)) /*note : To disable a DMA request we must use MODIFY_REG macro to avoid writing "1" to the FIFO flush bits located in the same DMA request enable register (CR register). */ #define JPEG_DISABLE_DMA(__HANDLE__,__DMA__) MODIFY_REG((__HANDLE__)->Instance->CR, ((__DMA__) & JPEG_DMA_MASK), 0UL) /** * @} */ /* Private variables ---------------------------------------------------------*/ /** @addtogroup JPEG_Private_Variables * @{ */ static const JPEG_DCHuffTableTypeDef JPEG_DCLUM_HuffTable = { { 0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0 }, /*Bits*/ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xa, 0xb } /*HUFFVAL */ }; static const JPEG_DCHuffTableTypeDef JPEG_DCCHROM_HuffTable = { { 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 }, /*Bits*/ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xa, 0xb } /*HUFFVAL */ }; static const JPEG_ACHuffTableTypeDef JPEG_ACLUM_HuffTable = { { 0, 2, 1, 3, 3, 2, 4, 3, 5, 5, 4, 4, 0, 0, 1, 0x7d }, /*Bits*/ { 0x01, 0x02, 0x03, 0x00, 0x04, 0x11, 0x05, 0x12, /*HUFFVAL */ 0x21, 0x31, 0x41, 0x06, 0x13, 0x51, 0x61, 0x07, 0x22, 0x71, 0x14, 0x32, 0x81, 0x91, 0xa1, 0x08, 0x23, 0x42, 0xb1, 0xc1, 0x15, 0x52, 0xd1, 0xf0, 0x24, 0x33, 0x62, 0x72, 0x82, 0x09, 0x0a, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2a, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3a, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4a, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5a, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6a, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7a, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8a, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9a, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, 0xb8, 0xb9, 0xba, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0xd9, 0xda, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0xf9, 0xfa } }; static const JPEG_ACHuffTableTypeDef JPEG_ACCHROM_HuffTable = { { 0, 2, 1, 2, 4, 4, 3, 4, 7, 5, 4, 4, 0, 1, 2, 0x77 }, /*Bits*/ { 0x00, 0x01, 0x02, 0x03, 0x11, 0x04, 0x05, 0x21, /*HUFFVAL */ 0x31, 0x06, 0x12, 0x41, 0x51, 0x07, 0x61, 0x71, 0x13, 0x22, 0x32, 0x81, 0x08, 0x14, 0x42, 0x91, 0xa1, 0xb1, 0xc1, 0x09, 0x23, 0x33, 0x52, 0xf0, 0x15, 0x62, 0x72, 0xd1, 0x0a, 0x16, 0x24, 0x34, 0xe1, 0x25, 0xf1, 0x17, 0x18, 0x19, 0x1a, 0x26, 0x27, 0x28, 0x29, 0x2a, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3a, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4a, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5a, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6a, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7a, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8a, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9a, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, 0xb8, 0xb9, 0xba, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0xd9, 0xda, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0xf9, 0xfa } }; static const uint8_t JPEG_ZIGZAG_ORDER[JPEG_QUANT_TABLE_SIZE] = { 0, 1, 8, 16, 9, 2, 3, 10, 17, 24, 32, 25, 18, 11, 4, 5, 12, 19, 26, 33, 40, 48, 41, 34, 27, 20, 13, 6, 7, 14, 21, 28, 35, 42, 49, 56, 57, 50, 43, 36, 29, 22, 15, 23, 30, 37, 44, 51, 58, 59, 52, 45, 38, 31, 39, 46, 53, 60, 61, 54, 47, 55, 62, 63 }; /** * @} */ /* Private function prototypes -----------------------------------------------*/ /** @addtogroup JPEG_Private_Functions_Prototypes * @{ */ static HAL_StatusTypeDef JPEG_Bits_To_SizeCodes(uint8_t *Bits, uint8_t *Huffsize, uint32_t *Huffcode, uint32_t *LastK); static HAL_StatusTypeDef JPEG_DCHuff_BitsVals_To_SizeCodes(JPEG_DCHuffTableTypeDef *DC_BitsValsTable, JPEG_DC_HuffCodeTableTypeDef *DC_SizeCodesTable); static HAL_StatusTypeDef JPEG_ACHuff_BitsVals_To_SizeCodes(JPEG_ACHuffTableTypeDef *AC_BitsValsTable, JPEG_AC_HuffCodeTableTypeDef *AC_SizeCodesTable); static HAL_StatusTypeDef JPEG_Set_HuffDC_Mem(JPEG_HandleTypeDef *hjpeg, JPEG_DCHuffTableTypeDef *HuffTableDC, const __IO uint32_t *DCTableAddress); static HAL_StatusTypeDef JPEG_Set_HuffAC_Mem(JPEG_HandleTypeDef *hjpeg, JPEG_ACHuffTableTypeDef *HuffTableAC, const __IO uint32_t *ACTableAddress); static HAL_StatusTypeDef JPEG_Set_HuffEnc_Mem(JPEG_HandleTypeDef *hjpeg); static void JPEG_Set_Huff_DHTMem(JPEG_HandleTypeDef *hjpeg); static uint32_t JPEG_Set_Quantization_Mem(JPEG_HandleTypeDef *hjpeg, uint8_t *QTable, __IO uint32_t *QTableAddress); static void JPEG_SetColorYCBCR(JPEG_HandleTypeDef *hjpeg); static void JPEG_SetColorGrayScale(JPEG_HandleTypeDef *hjpeg); static void JPEG_SetColorCMYK(JPEG_HandleTypeDef *hjpeg); static void JPEG_Init_Process(JPEG_HandleTypeDef *hjpeg); static uint32_t JPEG_Process(JPEG_HandleTypeDef *hjpeg); static void JPEG_ReadInputData(JPEG_HandleTypeDef *hjpeg, uint32_t nbRequestWords); static void JPEG_StoreOutputData(JPEG_HandleTypeDef *hjpeg, uint32_t nbOutputWords); static uint32_t JPEG_GetQuality(JPEG_HandleTypeDef *hjpeg); static HAL_StatusTypeDef JPEG_DMA_StartProcess(JPEG_HandleTypeDef *hjpeg); static void JPEG_DMA_ContinueProcess(JPEG_HandleTypeDef *hjpeg); static void JPEG_DMA_EndProcess(JPEG_HandleTypeDef *hjpeg); static void JPEG_DMA_PollResidualData(JPEG_HandleTypeDef *hjpeg); static void JPEG_DMAOutCpltCallback(DMA_HandleTypeDef *hdma); static void JPEG_DMAInCpltCallback(DMA_HandleTypeDef *hdma); static void JPEG_DMAErrorCallback(DMA_HandleTypeDef *hdma); static void JPEG_DMAOutAbortCallback(DMA_HandleTypeDef *hdma) ; /** * @} */ /** @defgroup JPEG_Exported_Functions JPEG Exported Functions * @{ */ /** @defgroup JPEG_Exported_Functions_Group1 Initialization and de-initialization functions * @brief Initialization and de-initialization functions. * @verbatim ============================================================================== ##### Initialization and de-initialization functions ##### ============================================================================== [..] This section provides functions allowing to: (+) Initialize the JPEG peripheral and creates the associated handle (+) DeInitialize the JPEG peripheral @endverbatim * @{ */ /** * @brief Initializes the JPEG according to the specified * parameters in the JPEG_InitTypeDef and creates the associated handle. * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @retval HAL status */ HAL_StatusTypeDef HAL_JPEG_Init(JPEG_HandleTypeDef *hjpeg) { /* These are the sample quantization tables given in JPEG spec ISO/IEC 10918-1 standard , section K.1. */ static const uint8_t JPEG_LUM_QuantTable[JPEG_QUANT_TABLE_SIZE] = { 16, 11, 10, 16, 24, 40, 51, 61, 12, 12, 14, 19, 26, 58, 60, 55, 14, 13, 16, 24, 40, 57, 69, 56, 14, 17, 22, 29, 51, 87, 80, 62, 18, 22, 37, 56, 68, 109, 103, 77, 24, 35, 55, 64, 81, 104, 113, 92, 49, 64, 78, 87, 103, 121, 120, 101, 72, 92, 95, 98, 112, 100, 103, 99 }; static const uint8_t JPEG_CHROM_QuantTable[JPEG_QUANT_TABLE_SIZE] = { 17, 18, 24, 47, 99, 99, 99, 99, 18, 21, 26, 66, 99, 99, 99, 99, 24, 26, 56, 99, 99, 99, 99, 99, 47, 66, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99 }; /* Check the JPEG handle allocation */ if (hjpeg == NULL) { return HAL_ERROR; } #if (USE_HAL_JPEG_REGISTER_CALLBACKS == 1) if (hjpeg->State == HAL_JPEG_STATE_RESET) { /* Allocate lock resource and initialize it */ hjpeg->Lock = HAL_UNLOCKED; hjpeg->InfoReadyCallback = HAL_JPEG_InfoReadyCallback; /* Legacy weak InfoReadyCallback */ hjpeg->EncodeCpltCallback = HAL_JPEG_EncodeCpltCallback; /* Legacy weak EncodeCpltCallback */ hjpeg->DecodeCpltCallback = HAL_JPEG_DecodeCpltCallback; /* Legacy weak DecodeCpltCallback */ hjpeg->ErrorCallback = HAL_JPEG_ErrorCallback; /* Legacy weak ErrorCallback */ hjpeg->GetDataCallback = HAL_JPEG_GetDataCallback; /* Legacy weak GetDataCallback */ hjpeg->DataReadyCallback = HAL_JPEG_DataReadyCallback; /* Legacy weak DataReadyCallback */ if (hjpeg->MspInitCallback == NULL) { hjpeg->MspInitCallback = HAL_JPEG_MspInit; /* Legacy weak MspInit */ } /* Init the low level hardware */ hjpeg->MspInitCallback(hjpeg); } #else if (hjpeg->State == HAL_JPEG_STATE_RESET) { /* Allocate lock resource and initialize it */ hjpeg->Lock = HAL_UNLOCKED; /* Init the low level hardware : GPIO, CLOCK */ HAL_JPEG_MspInit(hjpeg); } #endif /* USE_HAL_JPEG_REGISTER_CALLBACKS */ /* Change the JPEG state */ hjpeg->State = HAL_JPEG_STATE_BUSY; /* Start the JPEG Core*/ __HAL_JPEG_ENABLE(hjpeg); /* Stop the JPEG encoding/decoding process*/ hjpeg->Instance->CONFR0 &= ~JPEG_CONFR0_START; /* Disable All Interrupts */ __HAL_JPEG_DISABLE_IT(hjpeg, JPEG_INTERRUPT_MASK); /* Disable All DMA requests */ JPEG_DISABLE_DMA(hjpeg, JPEG_DMA_MASK); /* Flush input and output FIFOs*/ hjpeg->Instance->CR |= JPEG_CR_IFF; hjpeg->Instance->CR |= JPEG_CR_OFF; /* Clear all flags */ __HAL_JPEG_CLEAR_FLAG(hjpeg, JPEG_FLAG_ALL); /* init default quantization tables*/ hjpeg->QuantTable0 = (uint8_t *)((uint32_t)JPEG_LUM_QuantTable); hjpeg->QuantTable1 = (uint8_t *)((uint32_t)JPEG_CHROM_QuantTable); hjpeg->QuantTable2 = NULL; hjpeg->QuantTable3 = NULL; /* init the default Huffman tables*/ if (JPEG_Set_HuffEnc_Mem(hjpeg) != HAL_OK) { hjpeg->ErrorCode = HAL_JPEG_ERROR_HUFF_TABLE; return HAL_ERROR; } /* Enable header processing*/ hjpeg->Instance->CONFR1 |= JPEG_CONFR1_HDR; /* Reset JpegInCount and JpegOutCount */ hjpeg->JpegInCount = 0; hjpeg->JpegOutCount = 0; /* Change the JPEG state */ hjpeg->State = HAL_JPEG_STATE_READY; /* Reset the JPEG ErrorCode */ hjpeg->ErrorCode = HAL_JPEG_ERROR_NONE; /*Clear the context filelds*/ hjpeg->Context = 0; /* Return function status */ return HAL_OK; } /** * @brief DeInitializes the JPEG peripheral. * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @retval HAL status */ HAL_StatusTypeDef HAL_JPEG_DeInit(JPEG_HandleTypeDef *hjpeg) { /* Check the JPEG handle allocation */ if (hjpeg == NULL) { return HAL_ERROR; } #if (USE_HAL_JPEG_REGISTER_CALLBACKS == 1) if (hjpeg->MspDeInitCallback == NULL) { hjpeg->MspDeInitCallback = HAL_JPEG_MspDeInit; /* Legacy weak MspDeInit */ } /* DeInit the low level hardware */ hjpeg->MspDeInitCallback(hjpeg); #else /* DeInit the low level hardware: CLOCK, NVIC.*/ HAL_JPEG_MspDeInit(hjpeg); #endif /* USE_HAL_JPEG_REGISTER_CALLBACKS */ /* Change the JPEG state */ hjpeg->State = HAL_JPEG_STATE_BUSY; /* Reset the JPEG ErrorCode */ hjpeg->ErrorCode = HAL_JPEG_ERROR_NONE; /* Reset JpegInCount and JpegOutCount */ hjpeg->JpegInCount = 0; hjpeg->JpegOutCount = 0; /* Change the JPEG state */ hjpeg->State = HAL_JPEG_STATE_RESET; /*Clear the context fields*/ hjpeg->Context = 0; /* Release Lock */ __HAL_UNLOCK(hjpeg); /* Return function status */ return HAL_OK; } /** * @brief Initializes the JPEG MSP. * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @retval None */ __weak void HAL_JPEG_MspInit(JPEG_HandleTypeDef *hjpeg) { /* Prevent unused argument(s) compilation warning */ UNUSED(hjpeg); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_JPEG_MspInit could be implemented in the user file */ } /** * @brief DeInitializes JPEG MSP. * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @retval None */ __weak void HAL_JPEG_MspDeInit(JPEG_HandleTypeDef *hjpeg) { /* Prevent unused argument(s) compilation warning */ UNUSED(hjpeg); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_JPEG_MspDeInit could be implemented in the user file */ } #if (USE_HAL_JPEG_REGISTER_CALLBACKS == 1) /** * @brief Register a User JPEG Callback * To be used instead of the weak predefined callback * @param hjpeg JPEG handle * @param CallbackID ID of the callback to be registered * This parameter can be one of the following values: * @arg @ref HAL_JPEG_ENCODE_CPLT_CB_ID Encode Complete callback ID * @arg @ref HAL_JPEG_DECODE_CPLT_CB_ID Decode Complete callback ID * @arg @ref HAL_JPEG_ERROR_CB_ID Error callback ID * @arg @ref HAL_JPEG_MSPINIT_CB_ID MspInit callback ID * @arg @ref HAL_JPEG_MSPDEINIT_CB_ID MspDeInit callback ID * @param pCallback pointer to the Callback function * @retval HAL status */ HAL_StatusTypeDef HAL_JPEG_RegisterCallback(JPEG_HandleTypeDef *hjpeg, HAL_JPEG_CallbackIDTypeDef CallbackID, pJPEG_CallbackTypeDef pCallback) { HAL_StatusTypeDef status = HAL_OK; if (pCallback == NULL) { /* Update the error code */ hjpeg->ErrorCode |= HAL_JPEG_ERROR_INVALID_CALLBACK; return HAL_ERROR; } /* Process locked */ __HAL_LOCK(hjpeg); if (HAL_JPEG_STATE_READY == hjpeg->State) { switch (CallbackID) { case HAL_JPEG_ENCODE_CPLT_CB_ID : hjpeg->EncodeCpltCallback = pCallback; break; case HAL_JPEG_DECODE_CPLT_CB_ID : hjpeg->DecodeCpltCallback = pCallback; break; case HAL_JPEG_ERROR_CB_ID : hjpeg->ErrorCallback = pCallback; break; case HAL_JPEG_MSPINIT_CB_ID : hjpeg->MspInitCallback = pCallback; break; case HAL_JPEG_MSPDEINIT_CB_ID : hjpeg->MspDeInitCallback = pCallback; break; default : /* Update the error code */ hjpeg->ErrorCode |= HAL_JPEG_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; break; } } else if (HAL_JPEG_STATE_RESET == hjpeg->State) { switch (CallbackID) { case HAL_JPEG_MSPINIT_CB_ID : hjpeg->MspInitCallback = pCallback; break; case HAL_JPEG_MSPDEINIT_CB_ID : hjpeg->MspDeInitCallback = pCallback; break; default : /* Update the error code */ hjpeg->ErrorCode |= HAL_JPEG_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; break; } } else { /* Update the error code */ hjpeg->ErrorCode |= HAL_JPEG_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hjpeg); return status; } /** * @brief Unregister a JPEG Callback * JPEG callabck is redirected to the weak predefined callback * @param hjpeg JPEG handle * @param CallbackID ID of the callback to be unregistered * This parameter can be one of the following values: * This parameter can be one of the following values: * @arg @ref HAL_JPEG_ENCODE_CPLT_CB_ID Encode Complete callback ID * @arg @ref HAL_JPEG_DECODE_CPLT_CB_ID Decode Complete callback ID * @arg @ref HAL_JPEG_ERROR_CB_ID Error callback ID * @arg @ref HAL_JPEG_MSPINIT_CB_ID MspInit callback ID * @arg @ref HAL_JPEG_MSPDEINIT_CB_ID MspDeInit callback ID * @retval HAL status */ HAL_StatusTypeDef HAL_JPEG_UnRegisterCallback(JPEG_HandleTypeDef *hjpeg, HAL_JPEG_CallbackIDTypeDef CallbackID) { HAL_StatusTypeDef status = HAL_OK; /* Process locked */ __HAL_LOCK(hjpeg); if (HAL_JPEG_STATE_READY == hjpeg->State) { switch (CallbackID) { case HAL_JPEG_ENCODE_CPLT_CB_ID : hjpeg->EncodeCpltCallback = HAL_JPEG_EncodeCpltCallback; /* Legacy weak EncodeCpltCallback */ break; case HAL_JPEG_DECODE_CPLT_CB_ID : hjpeg->DecodeCpltCallback = HAL_JPEG_DecodeCpltCallback; /* Legacy weak DecodeCpltCallback */ break; case HAL_JPEG_ERROR_CB_ID : hjpeg->ErrorCallback = HAL_JPEG_ErrorCallback; /* Legacy weak ErrorCallback */ break; case HAL_JPEG_MSPINIT_CB_ID : hjpeg->MspInitCallback = HAL_JPEG_MspInit; /* Legacy weak MspInit */ break; case HAL_JPEG_MSPDEINIT_CB_ID : hjpeg->MspDeInitCallback = HAL_JPEG_MspDeInit; /* Legacy weak MspDeInit */ break; default : /* Update the error code */ hjpeg->ErrorCode |= HAL_JPEG_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; break; } } else if (HAL_JPEG_STATE_RESET == hjpeg->State) { switch (CallbackID) { case HAL_JPEG_MSPINIT_CB_ID : hjpeg->MspInitCallback = HAL_JPEG_MspInit; /* Legacy weak MspInit */ break; case HAL_JPEG_MSPDEINIT_CB_ID : hjpeg->MspDeInitCallback = HAL_JPEG_MspDeInit; /* Legacy weak MspInit */ break; default : /* Update the error code */ hjpeg->ErrorCode |= HAL_JPEG_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; break; } } else { /* Update the error code */ hjpeg->ErrorCode |= HAL_JPEG_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hjpeg); return status; } /** * @brief Register Info Ready JPEG Callback * To be used instead of the weak HAL_JPEG_InfoReadyCallback() predefined callback * @param hjpeg JPEG handle * @param pCallback pointer to the Info Ready Callback function * @retval HAL status */ HAL_StatusTypeDef HAL_JPEG_RegisterInfoReadyCallback(JPEG_HandleTypeDef *hjpeg, pJPEG_InfoReadyCallbackTypeDef pCallback) { HAL_StatusTypeDef status = HAL_OK; if (pCallback == NULL) { /* Update the error code */ hjpeg->ErrorCode |= HAL_JPEG_ERROR_INVALID_CALLBACK; return HAL_ERROR; } /* Process locked */ __HAL_LOCK(hjpeg); if (HAL_JPEG_STATE_READY == hjpeg->State) { hjpeg->InfoReadyCallback = pCallback; } else { /* Update the error code */ hjpeg->ErrorCode |= HAL_JPEG_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hjpeg); return status; } /** * @brief UnRegister the Info Ready JPEG Callback * Info Ready JPEG Callback is redirected to the weak HAL_JPEG_InfoReadyCallback() predefined callback * @param hjpeg JPEG handle * @retval HAL status */ HAL_StatusTypeDef HAL_JPEG_UnRegisterInfoReadyCallback(JPEG_HandleTypeDef *hjpeg) { HAL_StatusTypeDef status = HAL_OK; /* Process locked */ __HAL_LOCK(hjpeg); if (HAL_JPEG_STATE_READY == hjpeg->State) { hjpeg->InfoReadyCallback = HAL_JPEG_InfoReadyCallback; /* Legacy weak InfoReadyCallback */ } else { /* Update the error code */ hjpeg->ErrorCode |= HAL_JPEG_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hjpeg); return status; } /** * @brief Register Get Data JPEG Callback * To be used instead of the weak HAL_JPEG_GetDataCallback() predefined callback * @param hjpeg JPEG handle * @param pCallback pointer to the Get Data Callback function * @retval HAL status */ HAL_StatusTypeDef HAL_JPEG_RegisterGetDataCallback(JPEG_HandleTypeDef *hjpeg, pJPEG_GetDataCallbackTypeDef pCallback) { HAL_StatusTypeDef status = HAL_OK; if (pCallback == NULL) { /* Update the error code */ hjpeg->ErrorCode |= HAL_JPEG_ERROR_INVALID_CALLBACK; return HAL_ERROR; } /* Process locked */ __HAL_LOCK(hjpeg); if (HAL_JPEG_STATE_READY == hjpeg->State) { hjpeg->GetDataCallback = pCallback; } else { /* Update the error code */ hjpeg->ErrorCode |= HAL_JPEG_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hjpeg); return status; } /** * @brief UnRegister the Get Data JPEG Callback * Get Data JPEG Callback is redirected to the weak HAL_JPEG_GetDataCallback() predefined callback * @param hjpeg JPEG handle * @retval HAL status */ HAL_StatusTypeDef HAL_JPEG_UnRegisterGetDataCallback(JPEG_HandleTypeDef *hjpeg) { HAL_StatusTypeDef status = HAL_OK; /* Process locked */ __HAL_LOCK(hjpeg); if (HAL_JPEG_STATE_READY == hjpeg->State) { hjpeg->GetDataCallback = HAL_JPEG_GetDataCallback; /* Legacy weak GetDataCallback */ } else { /* Update the error code */ hjpeg->ErrorCode |= HAL_JPEG_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hjpeg); return status; } /** * @brief Register Data Ready JPEG Callback * To be used instead of the weak HAL_JPEG_DataReadyCallback() predefined callback * @param hjpeg JPEG handle * @param pCallback pointer to the Get Data Callback function * @retval HAL status */ HAL_StatusTypeDef HAL_JPEG_RegisterDataReadyCallback(JPEG_HandleTypeDef *hjpeg, pJPEG_DataReadyCallbackTypeDef pCallback) { HAL_StatusTypeDef status = HAL_OK; if (pCallback == NULL) { /* Update the error code */ hjpeg->ErrorCode |= HAL_JPEG_ERROR_INVALID_CALLBACK; return HAL_ERROR; } /* Process locked */ __HAL_LOCK(hjpeg); if (HAL_JPEG_STATE_READY == hjpeg->State) { hjpeg->DataReadyCallback = pCallback; } else { /* Update the error code */ hjpeg->ErrorCode |= HAL_JPEG_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hjpeg); return status; } /** * @brief UnRegister the Data Ready JPEG Callback * Get Data Ready Callback is redirected to the weak HAL_JPEG_DataReadyCallback() predefined callback * @param hjpeg JPEG handle * @retval HAL status */ HAL_StatusTypeDef HAL_JPEG_UnRegisterDataReadyCallback(JPEG_HandleTypeDef *hjpeg) { HAL_StatusTypeDef status = HAL_OK; /* Process locked */ __HAL_LOCK(hjpeg); if (HAL_JPEG_STATE_READY == hjpeg->State) { hjpeg->DataReadyCallback = HAL_JPEG_DataReadyCallback; /* Legacy weak DataReadyCallback */ } else { /* Update the error code */ hjpeg->ErrorCode |= HAL_JPEG_ERROR_INVALID_CALLBACK; /* Return error status */ status = HAL_ERROR; } /* Release Lock */ __HAL_UNLOCK(hjpeg); return status; } #endif /* USE_HAL_JPEG_REGISTER_CALLBACKS */ /** * @} */ /** @defgroup JPEG_Exported_Functions_Group2 Configuration functions * @brief JPEG Configuration functions. * @verbatim ============================================================================== ##### Configuration functions ##### ============================================================================== [..] This section provides functions allowing to: (+) HAL_JPEG_ConfigEncoding() : JPEG encoding configuration (+) HAL_JPEG_GetInfo() : Extract the image configuration from the JPEG header during the decoding (+) HAL_JPEG_EnableHeaderParsing() : Enable JPEG Header parsing for decoding (+) HAL_JPEG_DisableHeaderParsing() : Disable JPEG Header parsing for decoding (+) HAL_JPEG_SetUserQuantTables : Modify the default Quantization tables used for JPEG encoding. @endverbatim * @{ */ /** * @brief Set the JPEG encoding configuration. * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @param pConf pointer to a JPEG_ConfTypeDef structure that contains * the encoding configuration * @retval HAL status */ HAL_StatusTypeDef HAL_JPEG_ConfigEncoding(JPEG_HandleTypeDef *hjpeg, JPEG_ConfTypeDef *pConf) { uint32_t error; uint32_t numberMCU, hfactor, vfactor, hMCU, vMCU; /* Check the JPEG handle allocation */ if ((hjpeg == NULL) || (pConf == NULL)) { return HAL_ERROR; } else { /* Check the parameters */ assert_param(IS_JPEG_COLORSPACE(pConf->ColorSpace)); assert_param(IS_JPEG_CHROMASUBSAMPLING(pConf->ChromaSubsampling)); assert_param(IS_JPEG_IMAGE_QUALITY(pConf->ImageQuality)); /* Process Locked */ __HAL_LOCK(hjpeg); if (hjpeg->State == HAL_JPEG_STATE_READY) { hjpeg->State = HAL_JPEG_STATE_BUSY; hjpeg->Conf.ColorSpace = pConf->ColorSpace; hjpeg->Conf.ChromaSubsampling = pConf->ChromaSubsampling; hjpeg->Conf.ImageHeight = pConf->ImageHeight; hjpeg->Conf.ImageWidth = pConf->ImageWidth; hjpeg->Conf.ImageQuality = pConf->ImageQuality; /* Reset the Color Space : by default only one quantization table is used*/ hjpeg->Instance->CONFR1 &= ~JPEG_CONFR1_COLORSPACE; /* Set Number of color components*/ if (hjpeg->Conf.ColorSpace == JPEG_GRAYSCALE_COLORSPACE) { /*Gray Scale is only one component 8x8 blocks i.e 4:4:4*/ hjpeg->Conf.ChromaSubsampling = JPEG_444_SUBSAMPLING; JPEG_SetColorGrayScale(hjpeg); /* Set quantization table 0*/ error = JPEG_Set_Quantization_Mem(hjpeg, hjpeg->QuantTable0, (hjpeg->Instance->QMEM0)); } else if (hjpeg->Conf.ColorSpace == JPEG_YCBCR_COLORSPACE) { /* Set the Color Space for YCbCr : 2 quantization tables are used one for Luminance(Y) and one for both Chrominances (Cb & Cr) */ hjpeg->Instance->CONFR1 |= JPEG_CONFR1_COLORSPACE_0; JPEG_SetColorYCBCR(hjpeg); /* Set quantization table 0*/ error = JPEG_Set_Quantization_Mem(hjpeg, hjpeg->QuantTable0, (hjpeg->Instance->QMEM0)); /*By default quantization table 0 for component 0 and quantization table 1 for both components 1 and 2*/ error |= JPEG_Set_Quantization_Mem(hjpeg, hjpeg->QuantTable1, (hjpeg->Instance->QMEM1)); if ((hjpeg->Context & JPEG_CONTEXT_CUSTOM_TABLES) != 0UL) { /*Use user customized quantization tables , 1 table per component*/ /* use 3 quantization tables , one for each component*/ hjpeg->Instance->CONFR1 &= (~JPEG_CONFR1_COLORSPACE); hjpeg->Instance->CONFR1 |= JPEG_CONFR1_COLORSPACE_1; error |= JPEG_Set_Quantization_Mem(hjpeg, hjpeg->QuantTable2, (hjpeg->Instance->QMEM2)); /*Use Quantization 1 table for component 1*/ hjpeg->Instance->CONFR5 &= (~JPEG_CONFR5_QT); hjpeg->Instance->CONFR5 |= JPEG_CONFR5_QT_0; /*Use Quantization 2 table for component 2*/ hjpeg->Instance->CONFR6 &= (~JPEG_CONFR6_QT); hjpeg->Instance->CONFR6 |= JPEG_CONFR6_QT_1; } } else /* ColorSpace == JPEG_CMYK_COLORSPACE */ { JPEG_SetColorCMYK(hjpeg); /* Set quantization table 0*/ error = JPEG_Set_Quantization_Mem(hjpeg, hjpeg->QuantTable0, (hjpeg->Instance->QMEM0)); /*By default quantization table 0 for All components*/ if ((hjpeg->Context & JPEG_CONTEXT_CUSTOM_TABLES) != 0UL) { /*Use user customized quantization tables , 1 table per component*/ /* use 4 quantization tables , one for each component*/ hjpeg->Instance->CONFR1 |= JPEG_CONFR1_COLORSPACE; error |= JPEG_Set_Quantization_Mem(hjpeg, hjpeg->QuantTable1, (hjpeg->Instance->QMEM1)); error |= JPEG_Set_Quantization_Mem(hjpeg, hjpeg->QuantTable2, (hjpeg->Instance->QMEM2)); error |= JPEG_Set_Quantization_Mem(hjpeg, hjpeg->QuantTable3, (hjpeg->Instance->QMEM3)); /*Use Quantization 1 table for component 1*/ hjpeg->Instance->CONFR5 |= JPEG_CONFR5_QT_0; /*Use Quantization 2 table for component 2*/ hjpeg->Instance->CONFR6 |= JPEG_CONFR6_QT_1; /*Use Quantization 3 table for component 3*/ hjpeg->Instance->CONFR7 |= JPEG_CONFR7_QT; } } if (error != 0UL) { hjpeg->ErrorCode = HAL_JPEG_ERROR_QUANT_TABLE; /* Process Unlocked */ __HAL_UNLOCK(hjpeg); /* Set the JPEG State to ready */ hjpeg->State = HAL_JPEG_STATE_READY; return HAL_ERROR; } /* Set the image size*/ /* set the number of lines*/ MODIFY_REG(hjpeg->Instance->CONFR1, JPEG_CONFR1_YSIZE, ((hjpeg->Conf.ImageHeight & 0x0000FFFFUL) << 16)); /* set the number of pixels per line*/ MODIFY_REG(hjpeg->Instance->CONFR3, JPEG_CONFR3_XSIZE, ((hjpeg->Conf.ImageWidth & 0x0000FFFFUL) << 16)); if (hjpeg->Conf.ChromaSubsampling == JPEG_420_SUBSAMPLING) /* 4:2:0*/ { hfactor = 16; vfactor = 16; } else if (hjpeg->Conf.ChromaSubsampling == JPEG_422_SUBSAMPLING) /* 4:2:2*/ { hfactor = 16; vfactor = 8; } else /* Default is 8x8 MCU, 4:4:4*/ { hfactor = 8; vfactor = 8; } hMCU = (hjpeg->Conf.ImageWidth / hfactor); if ((hjpeg->Conf.ImageWidth % hfactor) != 0UL) { hMCU++; /*+1 for horizontal incomplete MCU */ } vMCU = (hjpeg->Conf.ImageHeight / vfactor); if ((hjpeg->Conf.ImageHeight % vfactor) != 0UL) { vMCU++; /*+1 for vertical incomplete MCU */ } numberMCU = (hMCU * vMCU) - 1UL; /* Bit Field JPEG_CONFR2_NMCU shall be set to NB_MCU - 1*/ /* Set the number of MCU*/ hjpeg->Instance->CONFR2 = (numberMCU & JPEG_CONFR2_NMCU); hjpeg->Context |= JPEG_CONTEXT_CONF_ENCODING; /* Process Unlocked */ __HAL_UNLOCK(hjpeg); /* Set the JPEG State to ready */ hjpeg->State = HAL_JPEG_STATE_READY; /* Return function status */ return HAL_OK; } else { /* Process Unlocked */ __HAL_UNLOCK(hjpeg); /* Return function status */ return HAL_BUSY; } } } /** * @brief Extract the image configuration from the JPEG header during the decoding * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @param pInfo pointer to a JPEG_ConfTypeDef structure that contains * The JPEG decoded header informations * @retval HAL status */ HAL_StatusTypeDef HAL_JPEG_GetInfo(JPEG_HandleTypeDef *hjpeg, JPEG_ConfTypeDef *pInfo) { uint32_t yblockNb, cBblockNb, cRblockNb; /* Check the JPEG handle allocation */ if ((hjpeg == NULL) || (pInfo == NULL)) { return HAL_ERROR; } /*Read the conf parameters */ if ((hjpeg->Instance->CONFR1 & JPEG_CONFR1_NF) == JPEG_CONFR1_NF_1) { pInfo->ColorSpace = JPEG_YCBCR_COLORSPACE; } else if ((hjpeg->Instance->CONFR1 & JPEG_CONFR1_NF) == 0UL) { pInfo->ColorSpace = JPEG_GRAYSCALE_COLORSPACE; } else if ((hjpeg->Instance->CONFR1 & JPEG_CONFR1_NF) == JPEG_CONFR1_NF) { pInfo->ColorSpace = JPEG_CMYK_COLORSPACE; } else { return HAL_ERROR; } pInfo->ImageHeight = (hjpeg->Instance->CONFR1 & 0xFFFF0000UL) >> 16; pInfo->ImageWidth = (hjpeg->Instance->CONFR3 & 0xFFFF0000UL) >> 16; if ((pInfo->ColorSpace == JPEG_YCBCR_COLORSPACE) || (pInfo->ColorSpace == JPEG_CMYK_COLORSPACE)) { yblockNb = (hjpeg->Instance->CONFR4 & JPEG_CONFR4_NB) >> 4; cBblockNb = (hjpeg->Instance->CONFR5 & JPEG_CONFR5_NB) >> 4; cRblockNb = (hjpeg->Instance->CONFR6 & JPEG_CONFR6_NB) >> 4; if ((yblockNb == 1UL) && (cBblockNb == 0UL) && (cRblockNb == 0UL)) { pInfo->ChromaSubsampling = JPEG_422_SUBSAMPLING; /*16x8 block*/ } else if ((yblockNb == 0UL) && (cBblockNb == 0UL) && (cRblockNb == 0UL)) { pInfo->ChromaSubsampling = JPEG_444_SUBSAMPLING; } else if ((yblockNb == 3UL) && (cBblockNb == 0UL) && (cRblockNb == 0UL)) { pInfo->ChromaSubsampling = JPEG_420_SUBSAMPLING; } else /*Default is 4:4:4*/ { pInfo->ChromaSubsampling = JPEG_444_SUBSAMPLING; } } else { pInfo->ChromaSubsampling = JPEG_444_SUBSAMPLING; } pInfo->ImageQuality = JPEG_GetQuality(hjpeg); /* Return function status */ return HAL_OK; } /** * @brief Enable JPEG Header parsing for decoding * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for the JPEG. * @retval HAL status */ HAL_StatusTypeDef HAL_JPEG_EnableHeaderParsing(JPEG_HandleTypeDef *hjpeg) { /* Process locked */ __HAL_LOCK(hjpeg); if (hjpeg->State == HAL_JPEG_STATE_READY) { /* Change the JPEG state */ hjpeg->State = HAL_JPEG_STATE_BUSY; /* Enable header processing*/ hjpeg->Instance->CONFR1 |= JPEG_CONFR1_HDR; /* Process unlocked */ __HAL_UNLOCK(hjpeg); /* Change the JPEG state */ hjpeg->State = HAL_JPEG_STATE_READY; return HAL_OK; } else { /* Process unlocked */ __HAL_UNLOCK(hjpeg); return HAL_BUSY; } } /** * @brief Disable JPEG Header parsing for decoding * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for the JPEG. * @retval HAL status */ HAL_StatusTypeDef HAL_JPEG_DisableHeaderParsing(JPEG_HandleTypeDef *hjpeg) { /* Process locked */ __HAL_LOCK(hjpeg); if (hjpeg->State == HAL_JPEG_STATE_READY) { /* Change the JPEG state */ hjpeg->State = HAL_JPEG_STATE_BUSY; /* Disable header processing*/ hjpeg->Instance->CONFR1 &= ~JPEG_CONFR1_HDR; /* Process unlocked */ __HAL_UNLOCK(hjpeg); /* Change the JPEG state */ hjpeg->State = HAL_JPEG_STATE_READY; return HAL_OK; } else { /* Process unlocked */ __HAL_UNLOCK(hjpeg); return HAL_BUSY; } } /** * @brief Modify the default Quantization tables used for JPEG encoding. * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @param QTable0 pointer to uint8_t , define the user quantification table for color component 1. * If NULL assume no need to update the table and no error return * @param QTable1 pointer to uint8_t , define the user quantification table for color component 2. * If NULL assume no need to update the table and no error return. * @param QTable2 pointer to uint8_t , define the user quantification table for color component 3, * If NULL assume no need to update the table and no error return. * @param QTable3 pointer to uint8_t , define the user quantification table for color component 4. * If NULL assume no need to update the table and no error return. * * @retval HAL status */ HAL_StatusTypeDef HAL_JPEG_SetUserQuantTables(JPEG_HandleTypeDef *hjpeg, uint8_t *QTable0, uint8_t *QTable1, uint8_t *QTable2, uint8_t *QTable3) { /* Process Locked */ __HAL_LOCK(hjpeg); if (hjpeg->State == HAL_JPEG_STATE_READY) { /* Change the DMA state */ hjpeg->State = HAL_JPEG_STATE_BUSY; hjpeg->Context |= JPEG_CONTEXT_CUSTOM_TABLES; hjpeg->QuantTable0 = QTable0; hjpeg->QuantTable1 = QTable1; hjpeg->QuantTable2 = QTable2; hjpeg->QuantTable3 = QTable3; /* Process Unlocked */ __HAL_UNLOCK(hjpeg); /* Change the DMA state */ hjpeg->State = HAL_JPEG_STATE_READY; /* Return function status */ return HAL_OK; } else { /* Process Unlocked */ __HAL_UNLOCK(hjpeg); return HAL_BUSY; } } /** * @} */ /** @defgroup JPEG_Exported_Functions_Group3 encoding/decoding processing functions * @brief processing functions. * @verbatim ============================================================================== ##### JPEG processing functions ##### ============================================================================== [..] This section provides functions allowing to: (+) HAL_JPEG_Encode() : JPEG encoding with polling process (+) HAL_JPEG_Decode() : JPEG decoding with polling process (+) HAL_JPEG_Encode_IT() : JPEG encoding with interrupt process (+) HAL_JPEG_Decode_IT() : JPEG decoding with interrupt process (+) HAL_JPEG_Encode_DMA() : JPEG encoding with DMA process (+) HAL_JPEG_Decode_DMA() : JPEG decoding with DMA process (+) HAL_JPEG_Pause() : Pause the Input/Output processing (+) HAL_JPEG_Resume() : Resume the JPEG Input/Output processing (+) HAL_JPEG_ConfigInputBuffer() : Config Encoding/Decoding Input Buffer (+) HAL_JPEG_ConfigOutputBuffer() : Config Encoding/Decoding Output Buffer (+) HAL_JPEG_Abort() : Aborts the JPEG Encoding/Decoding @endverbatim * @{ */ /** * @brief Starts JPEG encoding with polling processing * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @param pDataInMCU Pointer to the Input buffer * @param InDataLength size in bytes Input buffer * @param pDataOut Pointer to the jpeg output data buffer * @param OutDataLength size in bytes of the Output buffer * @param Timeout Specify Timeout value * @retval HAL status */ HAL_StatusTypeDef HAL_JPEG_Encode(JPEG_HandleTypeDef *hjpeg, uint8_t *pDataInMCU, uint32_t InDataLength, uint8_t *pDataOut, uint32_t OutDataLength, uint32_t Timeout) { uint32_t tickstart; /* Check the parameters */ assert_param((InDataLength >= 4UL)); assert_param((OutDataLength >= 4UL)); /* Check In/out buffer allocation and size */ if ((hjpeg == NULL) || (pDataInMCU == NULL) || (pDataOut == NULL)) { return HAL_ERROR; } /* Process locked */ __HAL_LOCK(hjpeg); if (hjpeg->State != HAL_JPEG_STATE_READY) { /* Process Unlocked */ __HAL_UNLOCK(hjpeg); return HAL_BUSY; } if (hjpeg->State == HAL_JPEG_STATE_READY) { if ((hjpeg->Context & JPEG_CONTEXT_CONF_ENCODING) == JPEG_CONTEXT_CONF_ENCODING) { /*Change JPEG state*/ hjpeg->State = HAL_JPEG_STATE_BUSY_ENCODING; /*Set the Context to Encode with Polling*/ hjpeg->Context &= ~(JPEG_CONTEXT_OPERATION_MASK | JPEG_CONTEXT_METHOD_MASK); hjpeg->Context |= (JPEG_CONTEXT_ENCODE | JPEG_CONTEXT_POLLING); /* Get tick */ tickstart = HAL_GetTick(); /*Store In/out buffers pointers and size*/ hjpeg->pJpegInBuffPtr = pDataInMCU; hjpeg->pJpegOutBuffPtr = pDataOut; hjpeg->InDataLength = InDataLength - (InDataLength % 4UL); /* In Data length must be multiple of 4 Bytes (1 word)*/ hjpeg->OutDataLength = OutDataLength - (OutDataLength % 4UL); /* Out Data length must be multiple of 4 Bytes (1 word)*/ /*Reset In/out data counter */ hjpeg->JpegInCount = 0; hjpeg->JpegOutCount = 0; /*Init decoding process*/ JPEG_Init_Process(hjpeg); /*JPEG data processing : In/Out FIFO transfer*/ while ((JPEG_Process(hjpeg) == JPEG_PROCESS_ONGOING)) { if (Timeout != HAL_MAX_DELAY) { if (((HAL_GetTick() - tickstart) > Timeout) || (Timeout == 0UL)) { /* Update error code */ hjpeg->ErrorCode |= HAL_JPEG_ERROR_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hjpeg); /*Change JPEG state*/ hjpeg->State = HAL_JPEG_STATE_READY; return HAL_TIMEOUT; } } } /* Process Unlocked */ __HAL_UNLOCK(hjpeg); /*Change JPEG state*/ hjpeg->State = HAL_JPEG_STATE_READY; } else { /* Process Unlocked */ __HAL_UNLOCK(hjpeg); return HAL_ERROR; } } /* Return function status */ return HAL_OK; } /** * @brief Starts JPEG decoding with polling processing * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @param pDataIn Pointer to the input data buffer * @param InDataLength size in bytes Input buffer * @param pDataOutMCU Pointer to the Output data buffer * @param OutDataLength size in bytes of the Output buffer * @param Timeout Specify Timeout value * @retval HAL status */ HAL_StatusTypeDef HAL_JPEG_Decode(JPEG_HandleTypeDef *hjpeg, uint8_t *pDataIn, uint32_t InDataLength, uint8_t *pDataOutMCU, uint32_t OutDataLength, uint32_t Timeout) { uint32_t tickstart; /* Check the parameters */ assert_param((InDataLength >= 4UL)); assert_param((OutDataLength >= 4UL)); /* Check In/out buffer allocation and size */ if ((hjpeg == NULL) || (pDataIn == NULL) || (pDataOutMCU == NULL)) { return HAL_ERROR; } /* Process Locked */ __HAL_LOCK(hjpeg); /* Get tick */ tickstart = HAL_GetTick(); if (hjpeg->State == HAL_JPEG_STATE_READY) { /*Change JPEG state*/ hjpeg->State = HAL_JPEG_STATE_BUSY_DECODING; /*Set the Context to Decode with Polling*/ /*Set the Context to Encode with Polling*/ hjpeg->Context &= ~(JPEG_CONTEXT_OPERATION_MASK | JPEG_CONTEXT_METHOD_MASK); hjpeg->Context |= (JPEG_CONTEXT_DECODE | JPEG_CONTEXT_POLLING); /*Store In/out buffers pointers and size*/ hjpeg->pJpegInBuffPtr = pDataIn; hjpeg->pJpegOutBuffPtr = pDataOutMCU; hjpeg->InDataLength = InDataLength - (InDataLength % 4UL); /*In Data length must be multiple of 4 Bytes (1 word)*/ hjpeg->OutDataLength = OutDataLength - (OutDataLength % 4UL); /*Out Data length must be multiple of 4 Bytes (1 word)*/ /*Reset In/out data counter */ hjpeg->JpegInCount = 0; hjpeg->JpegOutCount = 0; /*Init decoding process*/ JPEG_Init_Process(hjpeg); /*JPEG data processing : In/Out FIFO transfer*/ while ((JPEG_Process(hjpeg) == JPEG_PROCESS_ONGOING)) { if (Timeout != HAL_MAX_DELAY) { if (((HAL_GetTick() - tickstart) > Timeout) || (Timeout == 0UL)) { /* Update error code */ hjpeg->ErrorCode |= HAL_JPEG_ERROR_TIMEOUT; /* Process Unlocked */ __HAL_UNLOCK(hjpeg); /*Change JPEG state*/ hjpeg->State = HAL_JPEG_STATE_READY; return HAL_TIMEOUT; } } } /* Process Unlocked */ __HAL_UNLOCK(hjpeg); /*Change JPEG state*/ hjpeg->State = HAL_JPEG_STATE_READY; } else { /* Process Unlocked */ __HAL_UNLOCK(hjpeg); return HAL_BUSY; } /* Return function status */ return HAL_OK; } /** * @brief Starts JPEG encoding with interrupt processing * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @param pDataInMCU Pointer to the Input buffer * @param InDataLength size in bytes Input buffer * @param pDataOut Pointer to the jpeg output data buffer * @param OutDataLength size in bytes of the Output buffer * @retval HAL status */ HAL_StatusTypeDef HAL_JPEG_Encode_IT(JPEG_HandleTypeDef *hjpeg, uint8_t *pDataInMCU, uint32_t InDataLength, uint8_t *pDataOut, uint32_t OutDataLength) { /* Check the parameters */ assert_param((InDataLength >= 4UL)); assert_param((OutDataLength >= 4UL)); /* Check In/out buffer allocation and size */ if ((hjpeg == NULL) || (pDataInMCU == NULL) || (pDataOut == NULL)) { return HAL_ERROR; } /* Process Locked */ __HAL_LOCK(hjpeg); if (hjpeg->State != HAL_JPEG_STATE_READY) { /* Process Unlocked */ __HAL_UNLOCK(hjpeg); return HAL_BUSY; } else { if ((hjpeg->Context & JPEG_CONTEXT_CONF_ENCODING) == JPEG_CONTEXT_CONF_ENCODING) { /*Change JPEG state*/ hjpeg->State = HAL_JPEG_STATE_BUSY_ENCODING; /*Set the Context to Encode with IT*/ hjpeg->Context &= ~(JPEG_CONTEXT_OPERATION_MASK | JPEG_CONTEXT_METHOD_MASK); hjpeg->Context |= (JPEG_CONTEXT_ENCODE | JPEG_CONTEXT_IT); /*Store In/out buffers pointers and size*/ hjpeg->pJpegInBuffPtr = pDataInMCU; hjpeg->pJpegOutBuffPtr = pDataOut; hjpeg->InDataLength = InDataLength - (InDataLength % 4UL); /*In Data length must be multiple of 4 Bytes (1 word)*/ hjpeg->OutDataLength = OutDataLength - (OutDataLength % 4UL); /*Out Data length must be multiple of 4 Bytes (1 word)*/ /*Reset In/out data counter */ hjpeg->JpegInCount = 0; hjpeg->JpegOutCount = 0; /*Init decoding process*/ JPEG_Init_Process(hjpeg); } else { /* Process Unlocked */ __HAL_UNLOCK(hjpeg); return HAL_ERROR; } } /* Return function status */ return HAL_OK; } /** * @brief Starts JPEG decoding with interrupt processing * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @param pDataIn Pointer to the input data buffer * @param InDataLength size in bytes Input buffer * @param pDataOutMCU Pointer to the Output data buffer * @param OutDataLength size in bytes of the Output buffer * @retval HAL status */ HAL_StatusTypeDef HAL_JPEG_Decode_IT(JPEG_HandleTypeDef *hjpeg, uint8_t *pDataIn, uint32_t InDataLength, uint8_t *pDataOutMCU, uint32_t OutDataLength) { /* Check the parameters */ assert_param((InDataLength >= 4UL)); assert_param((OutDataLength >= 4UL)); /* Check In/out buffer allocation and size */ if ((hjpeg == NULL) || (pDataIn == NULL) || (pDataOutMCU == NULL)) { return HAL_ERROR; } /* Process Locked */ __HAL_LOCK(hjpeg); if (hjpeg->State == HAL_JPEG_STATE_READY) { /*Change JPEG state*/ hjpeg->State = HAL_JPEG_STATE_BUSY_DECODING; /*Set the Context to Decode with IT*/ hjpeg->Context &= ~(JPEG_CONTEXT_OPERATION_MASK | JPEG_CONTEXT_METHOD_MASK); hjpeg->Context |= (JPEG_CONTEXT_DECODE | JPEG_CONTEXT_IT); /*Store In/out buffers pointers and size*/ hjpeg->pJpegInBuffPtr = pDataIn; hjpeg->pJpegOutBuffPtr = pDataOutMCU; hjpeg->InDataLength = InDataLength - (InDataLength % 4UL); /*In Data length must be multiple of 4 Bytes (1 word)*/ hjpeg->OutDataLength = OutDataLength - (OutDataLength % 4UL); /*Out Data length must be multiple of 4 Bytes (1 word)*/ /*Reset In/out data counter */ hjpeg->JpegInCount = 0; hjpeg->JpegOutCount = 0; /*Init decoding process*/ JPEG_Init_Process(hjpeg); } else { /* Process Unlocked */ __HAL_UNLOCK(hjpeg); return HAL_BUSY; } /* Return function status */ return HAL_OK; } /** * @brief Starts JPEG encoding with DMA processing * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @param pDataInMCU Pointer to the Input buffer * @param InDataLength size in bytes Input buffer * @param pDataOut Pointer to the jpeg output data buffer * @param OutDataLength size in bytes of the Output buffer * @retval HAL status */ HAL_StatusTypeDef HAL_JPEG_Encode_DMA(JPEG_HandleTypeDef *hjpeg, uint8_t *pDataInMCU, uint32_t InDataLength, uint8_t *pDataOut, uint32_t OutDataLength) { /* Check the parameters */ assert_param((InDataLength >= 4UL)); assert_param((OutDataLength >= 4UL)); /* Check In/out buffer allocation and size */ if ((hjpeg == NULL) || (pDataInMCU == NULL) || (pDataOut == NULL)) { return HAL_ERROR; } /* Process Locked */ __HAL_LOCK(hjpeg); if (hjpeg->State != HAL_JPEG_STATE_READY) { /* Process Unlocked */ __HAL_UNLOCK(hjpeg); return HAL_BUSY; } else { if ((hjpeg->Context & JPEG_CONTEXT_CONF_ENCODING) == JPEG_CONTEXT_CONF_ENCODING) { /*Change JPEG state*/ hjpeg->State = HAL_JPEG_STATE_BUSY_ENCODING; /*Set the Context to Encode with DMA*/ hjpeg->Context &= ~(JPEG_CONTEXT_OPERATION_MASK | JPEG_CONTEXT_METHOD_MASK); hjpeg->Context |= (JPEG_CONTEXT_ENCODE | JPEG_CONTEXT_DMA); /*Store In/out buffers pointers and size*/ hjpeg->pJpegInBuffPtr = pDataInMCU; hjpeg->pJpegOutBuffPtr = pDataOut; hjpeg->InDataLength = InDataLength; hjpeg->OutDataLength = OutDataLength; /*Reset In/out data counter */ hjpeg->JpegInCount = 0; hjpeg->JpegOutCount = 0; /*Init decoding process*/ JPEG_Init_Process(hjpeg); /* JPEG encoding process using DMA */ if (JPEG_DMA_StartProcess(hjpeg) != HAL_OK) { /* Update State */ hjpeg->State = HAL_JPEG_STATE_ERROR; /* Process Unlocked */ __HAL_UNLOCK(hjpeg); return HAL_ERROR; } } else { /* Process Unlocked */ __HAL_UNLOCK(hjpeg); return HAL_ERROR; } } /* Return function status */ return HAL_OK; } /** * @brief Starts JPEG decoding with DMA processing * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @param pDataIn Pointer to the input data buffer * @param InDataLength size in bytes Input buffer * @param pDataOutMCU Pointer to the Output data buffer * @param OutDataLength size in bytes of the Output buffer * @retval HAL status */ HAL_StatusTypeDef HAL_JPEG_Decode_DMA(JPEG_HandleTypeDef *hjpeg, uint8_t *pDataIn, uint32_t InDataLength, uint8_t *pDataOutMCU, uint32_t OutDataLength) { /* Check the parameters */ assert_param((InDataLength >= 4UL)); assert_param((OutDataLength >= 4UL)); /* Check In/out buffer allocation and size */ if ((hjpeg == NULL) || (pDataIn == NULL) || (pDataOutMCU == NULL)) { return HAL_ERROR; } /* Process Locked */ __HAL_LOCK(hjpeg); if (hjpeg->State == HAL_JPEG_STATE_READY) { /*Change JPEG state*/ hjpeg->State = HAL_JPEG_STATE_BUSY_DECODING; /*Set the Context to Decode with DMA*/ hjpeg->Context &= ~(JPEG_CONTEXT_OPERATION_MASK | JPEG_CONTEXT_METHOD_MASK); hjpeg->Context |= (JPEG_CONTEXT_DECODE | JPEG_CONTEXT_DMA); /*Store In/out buffers pointers and size*/ hjpeg->pJpegInBuffPtr = pDataIn; hjpeg->pJpegOutBuffPtr = pDataOutMCU; hjpeg->InDataLength = InDataLength; hjpeg->OutDataLength = OutDataLength; /*Reset In/out data counter */ hjpeg->JpegInCount = 0; hjpeg->JpegOutCount = 0; /*Init decoding process*/ JPEG_Init_Process(hjpeg); /* JPEG decoding process using DMA */ if (JPEG_DMA_StartProcess(hjpeg) != HAL_OK) { /* Update State */ hjpeg->State = HAL_JPEG_STATE_ERROR; /* Process Unlocked */ __HAL_UNLOCK(hjpeg); return HAL_ERROR; } } else { /* Process Unlocked */ __HAL_UNLOCK(hjpeg); return HAL_BUSY; } /* Return function status */ return HAL_OK; } /** * @brief Pause the JPEG Input/Output processing * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @param XferSelection This parameter can be one of the following values : * JPEG_PAUSE_RESUME_INPUT : Pause Input processing * JPEG_PAUSE_RESUME_OUTPUT: Pause Output processing * JPEG_PAUSE_RESUME_INPUT_OUTPUT: Pause Input and Output processing * @retval HAL status */ HAL_StatusTypeDef HAL_JPEG_Pause(JPEG_HandleTypeDef *hjpeg, uint32_t XferSelection) { uint32_t mask = 0; assert_param(IS_JPEG_PAUSE_RESUME_STATE(XferSelection)); if ((hjpeg->Context & JPEG_CONTEXT_METHOD_MASK) == JPEG_CONTEXT_DMA) { if ((XferSelection & JPEG_PAUSE_RESUME_INPUT) == JPEG_PAUSE_RESUME_INPUT) { hjpeg->Context |= JPEG_CONTEXT_PAUSE_INPUT; mask |= JPEG_DMA_IDMA; } if ((XferSelection & JPEG_PAUSE_RESUME_OUTPUT) == JPEG_PAUSE_RESUME_OUTPUT) { hjpeg->Context |= JPEG_CONTEXT_PAUSE_OUTPUT; mask |= JPEG_DMA_ODMA; } JPEG_DISABLE_DMA(hjpeg, mask); } else if ((hjpeg->Context & JPEG_CONTEXT_METHOD_MASK) == JPEG_CONTEXT_IT) { if ((XferSelection & JPEG_PAUSE_RESUME_INPUT) == JPEG_PAUSE_RESUME_INPUT) { hjpeg->Context |= JPEG_CONTEXT_PAUSE_INPUT; mask |= (JPEG_IT_IFT | JPEG_IT_IFNF); } if ((XferSelection & JPEG_PAUSE_RESUME_OUTPUT) == JPEG_PAUSE_RESUME_OUTPUT) { hjpeg->Context |= JPEG_CONTEXT_PAUSE_OUTPUT; mask |= (JPEG_IT_OFT | JPEG_IT_OFNE | JPEG_IT_EOC); } __HAL_JPEG_DISABLE_IT(hjpeg, mask); } else { /* Nothing to do */ } /* Return function status */ return HAL_OK; } /** * @brief Resume the JPEG Input/Output processing * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @param XferSelection This parameter can be one of the following values : * JPEG_PAUSE_RESUME_INPUT : Resume Input processing * JPEG_PAUSE_RESUME_OUTPUT: Resume Output processing * JPEG_PAUSE_RESUME_INPUT_OUTPUT: Resume Input and Output processing * @retval HAL status */ HAL_StatusTypeDef HAL_JPEG_Resume(JPEG_HandleTypeDef *hjpeg, uint32_t XferSelection) { uint32_t mask = 0; assert_param(IS_JPEG_PAUSE_RESUME_STATE(XferSelection)); if ((hjpeg->Context & (JPEG_CONTEXT_PAUSE_INPUT | JPEG_CONTEXT_PAUSE_OUTPUT)) == 0UL) { /* if nothing paused to resume return error*/ return HAL_ERROR; } if ((hjpeg->Context & JPEG_CONTEXT_METHOD_MASK) == JPEG_CONTEXT_DMA) { if ((XferSelection & JPEG_PAUSE_RESUME_INPUT) == JPEG_PAUSE_RESUME_INPUT) { hjpeg->Context &= (~JPEG_CONTEXT_PAUSE_INPUT); mask |= JPEG_DMA_IDMA; /*JPEG Input DMA transfer data number must be multiple of DMA buffer size as the destination is a 32 bits register */ hjpeg->InDataLength = hjpeg->InDataLength - (hjpeg->InDataLength % 4UL); if (hjpeg->InDataLength > 0UL) { /* Start DMA FIFO In transfer */ if (HAL_DMA_Start_IT(hjpeg->hdmain, (uint32_t)hjpeg->pJpegInBuffPtr, (uint32_t)&hjpeg->Instance->DIR, hjpeg->InDataLength >> 2) != HAL_OK) { hjpeg->ErrorCode |= HAL_JPEG_ERROR_DMA; hjpeg->State = HAL_JPEG_STATE_ERROR; return HAL_ERROR; } } } if ((XferSelection & JPEG_PAUSE_RESUME_OUTPUT) == JPEG_PAUSE_RESUME_OUTPUT) { hjpeg->Context &= (~JPEG_CONTEXT_PAUSE_OUTPUT); if ((hjpeg->Context & JPEG_CONTEXT_ENDING_DMA) != 0UL) { JPEG_DMA_PollResidualData(hjpeg); } else { mask |= JPEG_DMA_ODMA; /* Start DMA FIFO Out transfer */ if (HAL_DMA_Start_IT(hjpeg->hdmaout, (uint32_t)&hjpeg->Instance->DOR, (uint32_t)hjpeg->pJpegOutBuffPtr, hjpeg->OutDataLength >> 2) != HAL_OK) { hjpeg->ErrorCode |= HAL_JPEG_ERROR_DMA; hjpeg->State = HAL_JPEG_STATE_ERROR; return HAL_ERROR; } } } JPEG_ENABLE_DMA(hjpeg, mask); } else if ((hjpeg->Context & JPEG_CONTEXT_METHOD_MASK) == JPEG_CONTEXT_IT) { if ((XferSelection & JPEG_PAUSE_RESUME_INPUT) == JPEG_PAUSE_RESUME_INPUT) { hjpeg->Context &= (~JPEG_CONTEXT_PAUSE_INPUT); mask |= (JPEG_IT_IFT | JPEG_IT_IFNF); } if ((XferSelection & JPEG_PAUSE_RESUME_OUTPUT) == JPEG_PAUSE_RESUME_OUTPUT) { hjpeg->Context &= (~JPEG_CONTEXT_PAUSE_OUTPUT); mask |= (JPEG_IT_OFT | JPEG_IT_OFNE | JPEG_IT_EOC); } __HAL_JPEG_ENABLE_IT(hjpeg, mask); } else { /* Nothing to do */ } /* Return function status */ return HAL_OK; } /** * @brief Config Encoding/Decoding Input Buffer. * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module. * @param pNewInputBuffer Pointer to the new input data buffer * @param InDataLength Size in bytes of the new Input data buffer * @retval HAL status */ void HAL_JPEG_ConfigInputBuffer(JPEG_HandleTypeDef *hjpeg, uint8_t *pNewInputBuffer, uint32_t InDataLength) { hjpeg->pJpegInBuffPtr = pNewInputBuffer; hjpeg->InDataLength = InDataLength; } /** * @brief Config Encoding/Decoding Output Buffer. * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module. * @param pNewOutputBuffer Pointer to the new output data buffer * @param OutDataLength Size in bytes of the new Output data buffer * @retval HAL status */ void HAL_JPEG_ConfigOutputBuffer(JPEG_HandleTypeDef *hjpeg, uint8_t *pNewOutputBuffer, uint32_t OutDataLength) { hjpeg->pJpegOutBuffPtr = pNewOutputBuffer; hjpeg->OutDataLength = OutDataLength; } /** * @brief Aborts the JPEG Encoding/Decoding. * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @retval HAL status */ HAL_StatusTypeDef HAL_JPEG_Abort(JPEG_HandleTypeDef *hjpeg) { uint32_t tickstart, tmpContext; tmpContext = hjpeg->Context; /*Reset the Context operation and method*/ hjpeg->Context &= ~(JPEG_CONTEXT_OPERATION_MASK | JPEG_CONTEXT_METHOD_MASK | JPEG_CONTEXT_ENDING_DMA); if ((tmpContext & JPEG_CONTEXT_METHOD_MASK) == JPEG_CONTEXT_DMA) { /* Stop the DMA In/out Xfer*/ if (HAL_DMA_Abort(hjpeg->hdmaout) != HAL_OK) { if (hjpeg->hdmaout->ErrorCode == HAL_DMA_ERROR_TIMEOUT) { hjpeg->ErrorCode |= HAL_JPEG_ERROR_DMA; } } if (HAL_DMA_Abort(hjpeg->hdmain) != HAL_OK) { if (hjpeg->hdmain->ErrorCode == HAL_DMA_ERROR_TIMEOUT) { hjpeg->ErrorCode |= HAL_JPEG_ERROR_DMA; } } } /* Stop the JPEG encoding/decoding process*/ hjpeg->Instance->CONFR0 &= ~JPEG_CONFR0_START; /* Get tick */ tickstart = HAL_GetTick(); /* Check if the JPEG Codec is effectively disabled */ while (__HAL_JPEG_GET_FLAG(hjpeg, JPEG_FLAG_COF) != 0UL) { /* Check for the Timeout */ if ((HAL_GetTick() - tickstart) > JPEG_TIMEOUT_VALUE) { /* Update error code */ hjpeg->ErrorCode |= HAL_JPEG_ERROR_TIMEOUT; /* Change the DMA state */ hjpeg->State = HAL_JPEG_STATE_ERROR; break; } } /* Disable All Interrupts */ __HAL_JPEG_DISABLE_IT(hjpeg, JPEG_INTERRUPT_MASK); /* Disable All DMA requests */ JPEG_DISABLE_DMA(hjpeg, JPEG_DMA_MASK); /* Flush input and output FIFOs*/ hjpeg->Instance->CR |= JPEG_CR_IFF; hjpeg->Instance->CR |= JPEG_CR_OFF; /* Clear all flags */ __HAL_JPEG_CLEAR_FLAG(hjpeg, JPEG_FLAG_ALL); /* Reset JpegInCount and JpegOutCount */ hjpeg->JpegInCount = 0; hjpeg->JpegOutCount = 0; /*Reset the Context Pause*/ hjpeg->Context &= ~(JPEG_CONTEXT_PAUSE_INPUT | JPEG_CONTEXT_PAUSE_OUTPUT); /* Change the DMA state*/ if (hjpeg->ErrorCode != HAL_JPEG_ERROR_NONE) { hjpeg->State = HAL_JPEG_STATE_ERROR; /* Process Unlocked */ __HAL_UNLOCK(hjpeg); /* Return function status */ return HAL_ERROR; } else { hjpeg->State = HAL_JPEG_STATE_READY; /* Process Unlocked */ __HAL_UNLOCK(hjpeg); /* Return function status */ return HAL_OK; } } /** * @} */ /** @defgroup JPEG_Exported_Functions_Group4 JPEG Decode/Encode callback functions * @brief JPEG process callback functions. * @verbatim ============================================================================== ##### JPEG Decode and Encode callback functions ##### ============================================================================== [..] This section provides callback functions: (+) HAL_JPEG_InfoReadyCallback() : Decoding JPEG Info ready callback (+) HAL_JPEG_EncodeCpltCallback() : Encoding complete callback. (+) HAL_JPEG_DecodeCpltCallback() : Decoding complete callback. (+) HAL_JPEG_ErrorCallback() : JPEG error callback. (+) HAL_JPEG_GetDataCallback() : Get New Data chunk callback. (+) HAL_JPEG_DataReadyCallback() : Decoded/Encoded Data ready callback. @endverbatim * @{ */ /** * @brief Decoding JPEG Info ready callback. * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @param pInfo pointer to a JPEG_ConfTypeDef structure that contains * The JPEG decoded header informations * @retval None */ __weak void HAL_JPEG_InfoReadyCallback(JPEG_HandleTypeDef *hjpeg, JPEG_ConfTypeDef *pInfo) { /* Prevent unused argument(s) compilation warning */ UNUSED(hjpeg); UNUSED(pInfo); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_JPEG_HeaderParsingCpltCallback could be implemented in the user file */ } /** * @brief Encoding complete callback. * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @retval None */ __weak void HAL_JPEG_EncodeCpltCallback(JPEG_HandleTypeDef *hjpeg) { /* Prevent unused argument(s) compilation warning */ UNUSED(hjpeg); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_JPEG_EncodeCpltCallback could be implemented in the user file */ } /** * @brief Decoding complete callback. * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @retval None */ __weak void HAL_JPEG_DecodeCpltCallback(JPEG_HandleTypeDef *hjpeg) { /* Prevent unused argument(s) compilation warning */ UNUSED(hjpeg); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_JPEG_EncodeCpltCallback could be implemented in the user file */ } /** * @brief JPEG error callback. * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @retval None */ __weak void HAL_JPEG_ErrorCallback(JPEG_HandleTypeDef *hjpeg) { /* Prevent unused argument(s) compilation warning */ UNUSED(hjpeg); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_JPEG_ErrorCallback could be implemented in the user file */ } /** * @brief Get New Data chunk callback. * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @param NbDecodedData Number of consummed data in the previous chunk in bytes * @retval None */ __weak void HAL_JPEG_GetDataCallback(JPEG_HandleTypeDef *hjpeg, uint32_t NbDecodedData) { /* Prevent unused argument(s) compilation warning */ UNUSED(hjpeg); UNUSED(NbDecodedData); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_JPEG_GetDataCallback could be implemented in the user file */ } /** * @brief Decoded/Encoded Data ready callback. * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @param pDataOut pointer to the output data buffer * @param OutDataLength number in bytes of data available in the specified output buffer * @retval None */ __weak void HAL_JPEG_DataReadyCallback(JPEG_HandleTypeDef *hjpeg, uint8_t *pDataOut, uint32_t OutDataLength) { /* Prevent unused argument(s) compilation warning */ UNUSED(hjpeg); UNUSED(pDataOut); UNUSED(OutDataLength); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_JPEG_DataReadyCallback could be implemented in the user file */ } /** * @} */ /** @defgroup JPEG_Exported_Functions_Group5 JPEG IRQ handler management * @brief JPEG IRQ handler. * @verbatim ============================================================================== ##### JPEG IRQ handler management ##### ============================================================================== [..] This section provides JPEG IRQ handler function. (+) HAL_JPEG_IRQHandler() : handles JPEG interrupt request @endverbatim * @{ */ /** * @brief This function handles JPEG interrupt request. * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @retval None */ void HAL_JPEG_IRQHandler(JPEG_HandleTypeDef *hjpeg) { switch (hjpeg->State) { case HAL_JPEG_STATE_BUSY_ENCODING: case HAL_JPEG_STATE_BUSY_DECODING: /* continue JPEG data encoding/Decoding*/ /* JPEG data processing : In/Out FIFO transfer*/ if ((hjpeg->Context & JPEG_CONTEXT_METHOD_MASK) == JPEG_CONTEXT_IT) { (void) JPEG_Process(hjpeg); } else if ((hjpeg->Context & JPEG_CONTEXT_METHOD_MASK) == JPEG_CONTEXT_DMA) { JPEG_DMA_ContinueProcess(hjpeg); } else { /* Nothing to do */ } break; default: break; } } /** * @} */ /** @defgroup JPEG_Exported_Functions_Group6 Peripheral State functions * @brief Peripheral State functions. * @verbatim ============================================================================== ##### Peripheral State and Error functions ##### ============================================================================== [..] This section provides JPEG State and Errors function. (+) HAL_JPEG_GetState() : permits to get in run-time the JPEG state. (+) HAL_JPEG_GetError() : Returns the JPEG error code if any. @endverbatim * @{ */ /** * @brief Returns the JPEG state. * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @retval JPEG state */ HAL_JPEG_STATETypeDef HAL_JPEG_GetState(JPEG_HandleTypeDef *hjpeg) { return hjpeg->State; } /** * @brief Return the JPEG error code * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for the specified JPEG. * @retval JPEG Error Code */ uint32_t HAL_JPEG_GetError(JPEG_HandleTypeDef *hjpeg) { return hjpeg->ErrorCode; } /** * @} */ /** * @} */ /** @addtogroup JPEG_Private_Functions * @{ */ /** * @brief Generates Huffman sizes/Codes Table from Bits/vals Table * @param Bits pointer to bits table * @param Huffsize pointer to sizes table * @param Huffcode pointer to codes table * @param LastK pointer to last Coeff (table dimmension) * @retval HAL status */ static HAL_StatusTypeDef JPEG_Bits_To_SizeCodes(uint8_t *Bits, uint8_t *Huffsize, uint32_t *Huffcode, uint32_t *LastK) { uint32_t i, p, l, code, si; /* Figure C.1: Generation of table of Huffman code sizes */ p = 0; for (l = 0; l < 16UL; l++) { i = (uint32_t)Bits[l]; if ((p + i) > 256UL) { /* check for table overflow */ return HAL_ERROR; } while (i != 0UL) { Huffsize[p] = (uint8_t) l + 1U; p++; i--; } } Huffsize[p] = 0; *LastK = p; /* Figure C.2: Generation of table of Huffman codes */ code = 0; si = Huffsize[0]; p = 0; while (Huffsize[p] != 0U) { while (((uint32_t) Huffsize[p]) == si) { Huffcode[p] = code; p++; code++; } /* code must fit in "size" bits (si), no code is allowed to be all ones*/ if(si > 31UL) { return HAL_ERROR; } if (((uint32_t) code) >= (((uint32_t) 1) << si)) { return HAL_ERROR; } code <<= 1; si++; } /* Return function status */ return HAL_OK; } /** * @brief Transform a Bits/Vals AC Huffman table to sizes/Codes huffman Table * that can programmed to the JPEG encoder registers * @param AC_BitsValsTable pointer to AC huffman bits/vals table * @param AC_SizeCodesTable pointer to AC huffman Sizes/Codes table * @retval HAL status */ static HAL_StatusTypeDef JPEG_ACHuff_BitsVals_To_SizeCodes(JPEG_ACHuffTableTypeDef *AC_BitsValsTable, JPEG_AC_HuffCodeTableTypeDef *AC_SizeCodesTable) { HAL_StatusTypeDef error; uint8_t huffsize[257]; uint32_t huffcode[257]; uint32_t k; uint32_t l, lsb, msb; uint32_t lastK; error = JPEG_Bits_To_SizeCodes(AC_BitsValsTable->Bits, huffsize, huffcode, &lastK); if (error != HAL_OK) { return error; } /* Figure C.3: Ordering procedure for encoding procedure code tables */ k = 0; while (k < lastK) { l = AC_BitsValsTable->HuffVal[k]; if (l == 0UL) { l = 160; /*l = 0x00 EOB code*/ } else if (l == 0xF0UL) /* l = 0xF0 ZRL code*/ { l = 161; } else { msb = (l & 0xF0UL) >> 4; lsb = (l & 0x0FUL); l = (msb * 10UL) + lsb - 1UL; } if (l >= JPEG_AC_HUFF_TABLE_SIZE) { return HAL_ERROR; /* Huffman Table overflow error*/ } else { AC_SizeCodesTable->HuffmanCode[l] = huffcode[k]; AC_SizeCodesTable->CodeLength[l] = huffsize[k] - 1U; k++; } } /* Return function status */ return HAL_OK; } /** * @brief Transform a Bits/Vals DC Huffman table to sizes/Codes huffman Table * that can programmed to the JPEG encoder registers * @param DC_BitsValsTable pointer to DC huffman bits/vals table * @param DC_SizeCodesTable pointer to DC huffman Sizes/Codes table * @retval HAL status */ static HAL_StatusTypeDef JPEG_DCHuff_BitsVals_To_SizeCodes(JPEG_DCHuffTableTypeDef *DC_BitsValsTable, JPEG_DC_HuffCodeTableTypeDef *DC_SizeCodesTable) { HAL_StatusTypeDef error; uint32_t k; uint32_t l; uint32_t lastK; uint8_t huffsize[257]; uint32_t huffcode[257]; error = JPEG_Bits_To_SizeCodes(DC_BitsValsTable->Bits, huffsize, huffcode, &lastK); if (error != HAL_OK) { return error; } /* Figure C.3: ordering procedure for encoding procedure code tables */ k = 0; while (k < lastK) { l = DC_BitsValsTable->HuffVal[k]; if (l >= JPEG_DC_HUFF_TABLE_SIZE) { return HAL_ERROR; /* Huffman Table overflow error*/ } else { DC_SizeCodesTable->HuffmanCode[l] = huffcode[k]; DC_SizeCodesTable->CodeLength[l] = huffsize[k] - 1U; k++; } } /* Return function status */ return HAL_OK; } /** * @brief Set the JPEG register with an DC huffman table at the given DC table address * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @param HuffTableDC pointer to DC huffman table * @param DCTableAddress Encoder DC huffman table address it could be HUFFENC_DC0 or HUFFENC_DC1. * @retval HAL status */ static HAL_StatusTypeDef JPEG_Set_HuffDC_Mem(JPEG_HandleTypeDef *hjpeg, JPEG_DCHuffTableTypeDef *HuffTableDC, const __IO uint32_t *DCTableAddress) { HAL_StatusTypeDef error; JPEG_DC_HuffCodeTableTypeDef dcSizeCodesTable; uint32_t i, lsb, msb; __IO uint32_t *address, *addressDef; if (DCTableAddress == (hjpeg->Instance->HUFFENC_DC0)) { address = (hjpeg->Instance->HUFFENC_DC0 + (JPEG_DC_HUFF_TABLE_SIZE / 2UL)); } else if (DCTableAddress == (hjpeg->Instance->HUFFENC_DC1)) { address = (hjpeg->Instance->HUFFENC_DC1 + (JPEG_DC_HUFF_TABLE_SIZE / 2UL)); } else { return HAL_ERROR; } if (HuffTableDC != NULL) { error = JPEG_DCHuff_BitsVals_To_SizeCodes(HuffTableDC, &dcSizeCodesTable); if (error != HAL_OK) { return error; } addressDef = address; *addressDef = 0x0FFF0FFF; addressDef++; *addressDef = 0x0FFF0FFF; i = JPEG_DC_HUFF_TABLE_SIZE; while (i > 1UL) { i--; address --; msb = ((uint32_t)(((uint32_t)dcSizeCodesTable.CodeLength[i] & 0xFU) << 8)) | ((uint32_t)dcSizeCodesTable.HuffmanCode[i] & 0xFFUL); i--; lsb = ((uint32_t)(((uint32_t)dcSizeCodesTable.CodeLength[i] & 0xFU) << 8)) | ((uint32_t)dcSizeCodesTable.HuffmanCode[i] & 0xFFUL); *address = lsb | (msb << 16); } } /* Return function status */ return HAL_OK; } /** * @brief Set the JPEG register with an AC huffman table at the given AC table address * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @param HuffTableAC pointer to AC huffman table * @param ACTableAddress Encoder AC huffman table address it could be HUFFENC_AC0 or HUFFENC_AC1. * @retval HAL status */ static HAL_StatusTypeDef JPEG_Set_HuffAC_Mem(JPEG_HandleTypeDef *hjpeg, JPEG_ACHuffTableTypeDef *HuffTableAC, const __IO uint32_t *ACTableAddress) { HAL_StatusTypeDef error; JPEG_AC_HuffCodeTableTypeDef acSizeCodesTable; uint32_t i, lsb, msb; __IO uint32_t *address, *addressDef; if (ACTableAddress == (hjpeg->Instance->HUFFENC_AC0)) { address = (hjpeg->Instance->HUFFENC_AC0 + (JPEG_AC_HUFF_TABLE_SIZE / 2UL)); } else if (ACTableAddress == (hjpeg->Instance->HUFFENC_AC1)) { address = (hjpeg->Instance->HUFFENC_AC1 + (JPEG_AC_HUFF_TABLE_SIZE / 2UL)); } else { return HAL_ERROR; } if (HuffTableAC != NULL) { error = JPEG_ACHuff_BitsVals_To_SizeCodes(HuffTableAC, &acSizeCodesTable); if (error != HAL_OK) { return error; } /* Default values settings: 162:167 FFFh , 168:175 FD0h_FD7h */ /* Locations 162:175 of each AC table contain information used internally by the core */ addressDef = address; for (i = 0; i < 3UL; i++) { *addressDef = 0x0FFF0FFF; addressDef++; } *addressDef = 0x0FD10FD0; addressDef++; *addressDef = 0x0FD30FD2; addressDef++; *addressDef = 0x0FD50FD4; addressDef++; *addressDef = 0x0FD70FD6; /* end of Locations 162:175 */ i = JPEG_AC_HUFF_TABLE_SIZE; while (i > 1UL) { i--; address--; msb = ((uint32_t)(((uint32_t)acSizeCodesTable.CodeLength[i] & 0xFU) << 8)) | ((uint32_t)acSizeCodesTable.HuffmanCode[i] & 0xFFUL); i--; lsb = ((uint32_t)(((uint32_t)acSizeCodesTable.CodeLength[i] & 0xFU) << 8)) | ((uint32_t)acSizeCodesTable.HuffmanCode[i] & 0xFFUL); *address = lsb | (msb << 16); } } /* Return function status */ return HAL_OK; } /** * @brief Configure the JPEG encoder register huffman tables to used during * the encdoing operation * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @retval None */ static HAL_StatusTypeDef JPEG_Set_HuffEnc_Mem(JPEG_HandleTypeDef *hjpeg) { HAL_StatusTypeDef error; JPEG_Set_Huff_DHTMem(hjpeg); error = JPEG_Set_HuffAC_Mem(hjpeg, (JPEG_ACHuffTableTypeDef *)(uint32_t)&JPEG_ACLUM_HuffTable, (hjpeg->Instance->HUFFENC_AC0)); if (error != HAL_OK) { return error; } error = JPEG_Set_HuffAC_Mem(hjpeg, (JPEG_ACHuffTableTypeDef *)(uint32_t)&JPEG_ACCHROM_HuffTable, (hjpeg->Instance->HUFFENC_AC1)); if (error != HAL_OK) { return error; } error = JPEG_Set_HuffDC_Mem(hjpeg, (JPEG_DCHuffTableTypeDef *)(uint32_t)&JPEG_DCLUM_HuffTable, hjpeg->Instance->HUFFENC_DC0); if (error != HAL_OK) { return error; } error = JPEG_Set_HuffDC_Mem(hjpeg, (JPEG_DCHuffTableTypeDef *)(uint32_t)&JPEG_DCCHROM_HuffTable, hjpeg->Instance->HUFFENC_DC1); if (error != HAL_OK) { return error; } /* Return function status */ return HAL_OK; } /** * @brief Configure the JPEG register huffman tables to be included in the JPEG * file header (used for encoding only) * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @retval None */ static void JPEG_Set_Huff_DHTMem(JPEG_HandleTypeDef *hjpeg) { JPEG_ACHuffTableTypeDef *HuffTableAC0 = (JPEG_ACHuffTableTypeDef *)(uint32_t)&JPEG_ACLUM_HuffTable; JPEG_ACHuffTableTypeDef *HuffTableAC1 = (JPEG_ACHuffTableTypeDef *)(uint32_t)&JPEG_ACCHROM_HuffTable; JPEG_DCHuffTableTypeDef *HuffTableDC0 = (JPEG_DCHuffTableTypeDef *)(uint32_t)&JPEG_DCLUM_HuffTable; JPEG_DCHuffTableTypeDef *HuffTableDC1 = (JPEG_DCHuffTableTypeDef *)(uint32_t)&JPEG_DCCHROM_HuffTable; uint32_t value, index; __IO uint32_t *address; /* DC0 Huffman Table : BITS*/ /* DC0 BITS is a 16 Bytes table i.e 4x32bits words from DHTMEM base address to DHTMEM + 3*/ address = (hjpeg->Instance->DHTMEM + 3); index = 16; while (index > 3UL) { *address = (((uint32_t)HuffTableDC0->Bits[index - 1UL] & 0xFFUL) << 24) | (((uint32_t)HuffTableDC0->Bits[index - 2UL] & 0xFFUL) << 16) | (((uint32_t)HuffTableDC0->Bits[index - 3UL] & 0xFFUL) << 8) | ((uint32_t)HuffTableDC0->Bits[index - 4UL] & 0xFFUL); address--; index -= 4UL; } /* DC0 Huffman Table : Val*/ /* DC0 VALS is a 12 Bytes table i.e 3x32bits words from DHTMEM base address +4 to DHTMEM + 6 */ address = (hjpeg->Instance->DHTMEM + 6); index = 12; while (index > 3UL) { *address = (((uint32_t)HuffTableDC0->HuffVal[index - 1UL] & 0xFFUL) << 24) | (((uint32_t)HuffTableDC0->HuffVal[index - 2UL] & 0xFFUL) << 16) | (((uint32_t)HuffTableDC0->HuffVal[index - 3UL] & 0xFFUL) << 8) | ((uint32_t)HuffTableDC0->HuffVal[index - 4UL] & 0xFFUL); address--; index -= 4UL; } /* AC0 Huffman Table : BITS*/ /* AC0 BITS is a 16 Bytes table i.e 4x32bits words from DHTMEM base address + 7 to DHTMEM + 10*/ address = (hjpeg->Instance->DHTMEM + 10UL); index = 16; while (index > 3UL) { *address = (((uint32_t)HuffTableAC0->Bits[index - 1UL] & 0xFFUL) << 24) | (((uint32_t)HuffTableAC0->Bits[index - 2UL] & 0xFFUL) << 16) | (((uint32_t)HuffTableAC0->Bits[index - 3UL] & 0xFFUL) << 8) | ((uint32_t)HuffTableAC0->Bits[index - 4UL] & 0xFFUL); address--; index -= 4UL; } /* AC0 Huffman Table : Val*/ /* AC0 VALS is a 162 Bytes table i.e 41x32bits words from DHTMEM base address + 11 to DHTMEM + 51 */ /* only Byte 0 and Byte 1 of the last word (@ DHTMEM + 51) belong to AC0 VALS table */ address = (hjpeg->Instance->DHTMEM + 51); value = *address & 0xFFFF0000U; value = value | (((uint32_t)HuffTableAC0->HuffVal[161] & 0xFFUL) << 8) | ((uint32_t)HuffTableAC0->HuffVal[160] & 0xFFUL); *address = value; /*continue setting 160 AC0 huffman values */ address--; /* address = hjpeg->Instance->DHTMEM + 50*/ index = 160; while (index > 3UL) { *address = (((uint32_t)HuffTableAC0->HuffVal[index - 1UL] & 0xFFUL) << 24) | (((uint32_t)HuffTableAC0->HuffVal[index - 2UL] & 0xFFUL) << 16) | (((uint32_t)HuffTableAC0->HuffVal[index - 3UL] & 0xFFUL) << 8) | ((uint32_t)HuffTableAC0->HuffVal[index - 4UL] & 0xFFUL); address--; index -= 4UL; } /* DC1 Huffman Table : BITS*/ /* DC1 BITS is a 16 Bytes table i.e 4x32bits words from DHTMEM + 51 base address to DHTMEM + 55*/ /* only Byte 2 and Byte 3 of the first word (@ DHTMEM + 51) belong to DC1 Bits table */ address = (hjpeg->Instance->DHTMEM + 51); value = *address & 0x0000FFFFU; value = value | (((uint32_t)HuffTableDC1->Bits[1] & 0xFFUL) << 24) | (((uint32_t)HuffTableDC1->Bits[0] & 0xFFUL) << 16); *address = value; /* only Byte 0 and Byte 1 of the last word (@ DHTMEM + 55) belong to DC1 Bits table */ address = (hjpeg->Instance->DHTMEM + 55); value = *address & 0xFFFF0000U; value = value | (((uint32_t)HuffTableDC1->Bits[15] & 0xFFUL) << 8) | ((uint32_t)HuffTableDC1->Bits[14] & 0xFFUL); *address = value; /*continue setting 12 DC1 huffman Bits from DHTMEM + 54 down to DHTMEM + 52*/ address--; index = 12; while (index > 3UL) { *address = (((uint32_t)HuffTableDC1->Bits[index + 1UL] & 0xFFUL) << 24) | (((uint32_t)HuffTableDC1->Bits[index] & 0xFFUL) << 16) | (((uint32_t)HuffTableDC1->Bits[index - 1UL] & 0xFFUL) << 8) | ((uint32_t)HuffTableDC1->Bits[index - 2UL] & 0xFFUL); address--; index -= 4UL; } /* DC1 Huffman Table : Val*/ /* DC1 VALS is a 12 Bytes table i.e 3x32bits words from DHTMEM base address +55 to DHTMEM + 58 */ /* only Byte 2 and Byte 3 of the first word (@ DHTMEM + 55) belong to DC1 Val table */ address = (hjpeg->Instance->DHTMEM + 55); value = *address & 0x0000FFFFUL; value = value | (((uint32_t)HuffTableDC1->HuffVal[1] & 0xFFUL) << 24) | (((uint32_t)HuffTableDC1->HuffVal[0] & 0xFFUL) << 16); *address = value; /* only Byte 0 and Byte 1 of the last word (@ DHTMEM + 58) belong to DC1 Val table */ address = (hjpeg->Instance->DHTMEM + 58); value = *address & 0xFFFF0000UL; value = value | (((uint32_t)HuffTableDC1->HuffVal[11] & 0xFFUL) << 8) | ((uint32_t)HuffTableDC1->HuffVal[10] & 0xFFUL); *address = value; /*continue setting 8 DC1 huffman val from DHTMEM + 57 down to DHTMEM + 56*/ address--; index = 8; while (index > 3UL) { *address = (((uint32_t)HuffTableDC1->HuffVal[index + 1UL] & 0xFFUL) << 24) | (((uint32_t)HuffTableDC1->HuffVal[index] & 0xFFUL) << 16) | (((uint32_t)HuffTableDC1->HuffVal[index - 1UL] & 0xFFUL) << 8) | ((uint32_t)HuffTableDC1->HuffVal[index - 2UL] & 0xFFUL); address--; index -= 4UL; } /* AC1 Huffman Table : BITS*/ /* AC1 BITS is a 16 Bytes table i.e 4x32bits words from DHTMEM base address + 58 to DHTMEM + 62*/ /* only Byte 2 and Byte 3 of the first word (@ DHTMEM + 58) belong to AC1 Bits table */ address = (hjpeg->Instance->DHTMEM + 58); value = *address & 0x0000FFFFU; value = value | (((uint32_t)HuffTableAC1->Bits[1] & 0xFFUL) << 24) | (((uint32_t)HuffTableAC1->Bits[0] & 0xFFUL) << 16); *address = value; /* only Byte 0 and Byte 1 of the last word (@ DHTMEM + 62) belong to Bits Val table */ address = (hjpeg->Instance->DHTMEM + 62); value = *address & 0xFFFF0000U; value = value | (((uint32_t)HuffTableAC1->Bits[15] & 0xFFUL) << 8) | ((uint32_t)HuffTableAC1->Bits[14] & 0xFFUL); *address = value; /*continue setting 12 AC1 huffman Bits from DHTMEM + 61 down to DHTMEM + 59*/ address--; index = 12; while (index > 3UL) { *address = (((uint32_t)HuffTableAC1->Bits[index + 1UL] & 0xFFUL) << 24) | (((uint32_t)HuffTableAC1->Bits[index] & 0xFFUL) << 16) | (((uint32_t)HuffTableAC1->Bits[index - 1UL] & 0xFFUL) << 8) | ((uint32_t)HuffTableAC1->Bits[index - 2UL] & 0xFFUL); address--; index -= 4UL; } /* AC1 Huffman Table : Val*/ /* AC1 VALS is a 162 Bytes table i.e 41x32bits words from DHTMEM base address + 62 to DHTMEM + 102 */ /* only Byte 2 and Byte 3 of the first word (@ DHTMEM + 62) belong to AC1 VALS table */ address = (hjpeg->Instance->DHTMEM + 62); value = *address & 0x0000FFFFUL; value = value | (((uint32_t)HuffTableAC1->HuffVal[1] & 0xFFUL) << 24) | (((uint32_t)HuffTableAC1->HuffVal[0] & 0xFFUL) << 16); *address = value; /*continue setting 160 AC1 huffman values from DHTMEM + 63 to DHTMEM+102 */ address = (hjpeg->Instance->DHTMEM + 102); index = 160; while (index > 3UL) { *address = (((uint32_t)HuffTableAC1->HuffVal[index + 1UL] & 0xFFUL) << 24) | (((uint32_t)HuffTableAC1->HuffVal[index] & 0xFFUL) << 16) | (((uint32_t)HuffTableAC1->HuffVal[index - 1UL] & 0xFFUL) << 8) | ((uint32_t)HuffTableAC1->HuffVal[index - 2UL] & 0xFFUL); address--; index -= 4UL; } } /** * @brief Configure the JPEG registers with a given quantization table * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @param QTable pointer to an array of 64 bytes giving the quantization table * @param QTableAddress destination quantization address in the JPEG peripheral * it could be QMEM0, QMEM1, QMEM2 or QMEM3 * @retval 0 if no error, 1 if error */ static uint32_t JPEG_Set_Quantization_Mem(JPEG_HandleTypeDef *hjpeg, uint8_t *QTable, __IO uint32_t *QTableAddress) { uint32_t i, j, quantRow, quantVal, ScaleFactor; __IO uint32_t *tableAddress; tableAddress = QTableAddress; if ((hjpeg->Conf.ImageQuality >= 50UL) && (hjpeg->Conf.ImageQuality <= 100UL)) { ScaleFactor = 200UL - (hjpeg->Conf.ImageQuality * 2UL); } else if (hjpeg->Conf.ImageQuality > 0UL) { ScaleFactor = ((uint32_t) 5000) / ((uint32_t) hjpeg->Conf.ImageQuality); } else { return 1UL; } /*Quantization_table = (Standard_quanization_table * ScaleFactor + 50) / 100*/ i = 0; while (i < (JPEG_QUANT_TABLE_SIZE - 3UL)) { quantRow = 0; for (j = 0; j < 4UL; j++) { /* Note that the quantization coefficients must be specified in the table in zigzag order */ quantVal = ((((uint32_t) QTable[JPEG_ZIGZAG_ORDER[i + j]]) * ScaleFactor) + 50UL) / 100UL; if (quantVal == 0UL) { quantVal = 1UL; } else if (quantVal > 255UL) { quantVal = 255UL; } else { /* Nothing to do, keep same value of quantVal */ } quantRow |= ((quantVal & 0xFFUL) << (8UL * j)); } i += 4UL; *tableAddress = quantRow; tableAddress ++; } /* Return function status */ return 0UL; } /** * @brief Configure the JPEG registers for YCbCr color space * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @retval None */ static void JPEG_SetColorYCBCR(JPEG_HandleTypeDef *hjpeg) { uint32_t ySamplingH; uint32_t ySamplingV; uint32_t yblockNb; /*Set Number of color components to 3*/ hjpeg->Instance->CONFR1 &= ~JPEG_CONFR1_NF; hjpeg->Instance->CONFR1 |= JPEG_CONFR1_NF_1; /* compute MCU block size and Y, Cb ,Cr sampling factors*/ if (hjpeg->Conf.ChromaSubsampling == JPEG_420_SUBSAMPLING) { ySamplingH = JPEG_CONFR4_HSF_1; /* Hs = 2*/ ySamplingV = JPEG_CONFR4_VSF_1; /* Vs = 2*/ yblockNb = 0x30; /* 4 blocks of 8x8*/ } else if (hjpeg->Conf.ChromaSubsampling == JPEG_422_SUBSAMPLING) { ySamplingH = JPEG_CONFR4_HSF_1; /* Hs = 2*/ ySamplingV = JPEG_CONFR4_VSF_0; /* Vs = 1*/ yblockNb = 0x10; /* 2 blocks of 8x8*/ } else /*JPEG_444_SUBSAMPLING and default*/ { ySamplingH = JPEG_CONFR4_HSF_0; /* Hs = 1*/ ySamplingV = JPEG_CONFR4_VSF_0; /* Vs = 1*/ yblockNb = 0; /* 1 block of 8x8*/ } hjpeg->Instance->CONFR1 &= ~(JPEG_CONFR1_NF | JPEG_CONFR1_NS); hjpeg->Instance->CONFR1 |= (JPEG_CONFR1_NF_1 | JPEG_CONFR1_NS_1); /*Reset CONFR4 register*/ hjpeg->Instance->CONFR4 = 0; /*Set Horizental and Vertical sampling factor , number of blocks , Quantization table and Huffman AC/DC tables for component 0*/ hjpeg->Instance->CONFR4 |= (ySamplingH | ySamplingV | (yblockNb & JPEG_CONFR4_NB)); /*Reset CONFR5 register*/ hjpeg->Instance->CONFR5 = 0; /*Set Horizental and Vertical sampling factor , number of blocks , Quantization table and Huffman AC/DC tables for component 1*/ hjpeg->Instance->CONFR5 |= (JPEG_CONFR5_HSF_0 | JPEG_CONFR5_VSF_0 | JPEG_CONFR5_QT_0 | JPEG_CONFR5_HA | JPEG_CONFR5_HD); /*Reset CONFR6 register*/ hjpeg->Instance->CONFR6 = 0; /*Set Horizental and Vertical sampling factor and number of blocks for component 2*/ /* In YCBCR , by default, both chrominance components (component 1 and component 2) use the same Quantization table (table 1) */ /* In YCBCR , both chrominance components (component 1 and component 2) use the same Huffman tables (table 1) */ hjpeg->Instance->CONFR6 |= (JPEG_CONFR6_HSF_0 | JPEG_CONFR6_VSF_0 | JPEG_CONFR6_QT_0 | JPEG_CONFR6_HA | JPEG_CONFR6_HD); } /** * @brief Configure the JPEG registers for GrayScale color space * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @retval None */ static void JPEG_SetColorGrayScale(JPEG_HandleTypeDef *hjpeg) { /*Set Number of color components to 1*/ hjpeg->Instance->CONFR1 &= ~(JPEG_CONFR1_NF | JPEG_CONFR1_NS); /*in GrayScale use 1 single Quantization table (Table 0)*/ /*in GrayScale use only one couple of AC/DC huffman table (table 0)*/ /*Reset CONFR4 register*/ hjpeg->Instance->CONFR4 = 0; /*Set Horizental and Vertical sampling factor , number of blocks , Quantization table and Huffman AC/DC tables for component 0*/ hjpeg->Instance->CONFR4 |= JPEG_CONFR4_HSF_0 | JPEG_CONFR4_VSF_0 ; } /** * @brief Configure the JPEG registers for CMYK color space * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @retval None */ static void JPEG_SetColorCMYK(JPEG_HandleTypeDef *hjpeg) { uint32_t ySamplingH; uint32_t ySamplingV; uint32_t yblockNb; /*Set Number of color components to 4*/ hjpeg->Instance->CONFR1 |= (JPEG_CONFR1_NF | JPEG_CONFR1_NS); /* compute MCU block size and Y, Cb ,Cr sampling factors*/ if (hjpeg->Conf.ChromaSubsampling == JPEG_420_SUBSAMPLING) { ySamplingH = JPEG_CONFR4_HSF_1; /* Hs = 2*/ ySamplingV = JPEG_CONFR4_VSF_1; /* Vs = 2*/ yblockNb = 0x30; /* 4 blocks of 8x8*/ } else if (hjpeg->Conf.ChromaSubsampling == JPEG_422_SUBSAMPLING) { ySamplingH = JPEG_CONFR4_HSF_1; /* Hs = 2*/ ySamplingV = JPEG_CONFR4_VSF_0; /* Vs = 1*/ yblockNb = 0x10; /* 2 blocks of 8x8*/ } else /*JPEG_444_SUBSAMPLING and default*/ { ySamplingH = JPEG_CONFR4_HSF_0; /* Hs = 1*/ ySamplingV = JPEG_CONFR4_VSF_0; /* Vs = 1*/ yblockNb = 0; /* 1 block of 8x8*/ } /*Reset CONFR4 register*/ hjpeg->Instance->CONFR4 = 0; /*Set Horizental and Vertical sampling factor , number of blocks , Quantization table and Huffman AC/DC tables for component 0*/ hjpeg->Instance->CONFR4 |= (ySamplingH | ySamplingV | (yblockNb & JPEG_CONFR4_NB)); /*Reset CONFR5 register*/ hjpeg->Instance->CONFR5 = 0; /*Set Horizental and Vertical sampling factor , number of blocks , Quantization table and Huffman AC/DC tables for component 1*/ hjpeg->Instance->CONFR5 |= (JPEG_CONFR5_HSF_0 | JPEG_CONFR5_VSF_0); /*Reset CONFR6 register*/ hjpeg->Instance->CONFR6 = 0; /*Set Horizental and Vertical sampling factor , number of blocks , Quantization table and Huffman AC/DC tables for component 2*/ hjpeg->Instance->CONFR6 |= (JPEG_CONFR6_HSF_0 | JPEG_CONFR6_VSF_0); /*Reset CONFR7 register*/ hjpeg->Instance->CONFR7 = 0; /*Set Horizental and Vertical sampling factor , number of blocks , Quantization table and Huffman AC/DC tables for component 3*/ hjpeg->Instance->CONFR7 |= (JPEG_CONFR7_HSF_0 | JPEG_CONFR7_VSF_0); } /** * @brief Init the JPEG encoding/decoding process in case of Polling or Interrupt and DMA * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @retval None */ static void JPEG_Init_Process(JPEG_HandleTypeDef *hjpeg) { /*Reset pause*/ hjpeg->Context &= (~(JPEG_CONTEXT_PAUSE_INPUT | JPEG_CONTEXT_PAUSE_OUTPUT)); if ((hjpeg->Context & JPEG_CONTEXT_OPERATION_MASK) == JPEG_CONTEXT_DECODE) { /*Set JPEG Codec to Decoding mode */ hjpeg->Instance->CONFR1 |= JPEG_CONFR1_DE; } else /* JPEG_CONTEXT_ENCODE */ { /*Set JPEG Codec to Encoding mode */ hjpeg->Instance->CONFR1 &= ~JPEG_CONFR1_DE; } /*Stop JPEG processing */ hjpeg->Instance->CONFR0 &= ~JPEG_CONFR0_START; /* Disable All Interrupts */ __HAL_JPEG_DISABLE_IT(hjpeg, JPEG_INTERRUPT_MASK); /* Disable All DMA requests */ JPEG_DISABLE_DMA(hjpeg, JPEG_DMA_MASK); /* Flush input and output FIFOs*/ hjpeg->Instance->CR |= JPEG_CR_IFF; hjpeg->Instance->CR |= JPEG_CR_OFF; /* Clear all flags */ __HAL_JPEG_CLEAR_FLAG(hjpeg, JPEG_FLAG_ALL); /*Start Encoding/Decoding*/ hjpeg->Instance->CONFR0 |= JPEG_CONFR0_START; if ((hjpeg->Context & JPEG_CONTEXT_METHOD_MASK) == JPEG_CONTEXT_IT) { /*Enable IN/OUT, end of Conversation, and end of header parsing interruptions*/ __HAL_JPEG_ENABLE_IT(hjpeg, JPEG_IT_IFT | JPEG_IT_IFNF | JPEG_IT_OFT | JPEG_IT_OFNE | JPEG_IT_EOC | JPEG_IT_HPD); } else if ((hjpeg->Context & JPEG_CONTEXT_METHOD_MASK) == JPEG_CONTEXT_DMA) { /*Enable End Of Conversation, and End Of Header parsing interruptions*/ __HAL_JPEG_ENABLE_IT(hjpeg, JPEG_IT_EOC | JPEG_IT_HPD); } else { /* Nothing to do */ } } /** * @brief JPEG encoding/decoding process in case of Polling or Interrupt * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @retval JPEG_PROCESS_DONE if the process has ends else JPEG_PROCESS_ONGOING */ static uint32_t JPEG_Process(JPEG_HandleTypeDef *hjpeg) { uint32_t tmpContext; /*End of header processing flag rised*/ if ((hjpeg->Context & JPEG_CONTEXT_OPERATION_MASK) == JPEG_CONTEXT_DECODE) { if (__HAL_JPEG_GET_FLAG(hjpeg, JPEG_FLAG_HPDF) != 0UL) { /*Call Header parsing complet callback */ (void) HAL_JPEG_GetInfo(hjpeg, &hjpeg->Conf); /* Reset the ImageQuality */ hjpeg->Conf.ImageQuality = 0; /* Note : the image quality is only available at the end of the decoding operation */ /* at the current stage the calculated image quality is not correct so reset it */ /*Call Info Ready callback */ #if (USE_HAL_JPEG_REGISTER_CALLBACKS == 1) hjpeg->InfoReadyCallback(hjpeg, &hjpeg->Conf); #else HAL_JPEG_InfoReadyCallback(hjpeg, &hjpeg->Conf); #endif /* USE_HAL_JPEG_REGISTER_CALLBACKS */ __HAL_JPEG_DISABLE_IT(hjpeg, JPEG_IT_HPD); /* Clear header processing done flag */ __HAL_JPEG_CLEAR_FLAG(hjpeg, JPEG_FLAG_HPDF); } } /*Input FIFO status handling*/ if ((hjpeg->Context & JPEG_CONTEXT_PAUSE_INPUT) == 0UL) { if (__HAL_JPEG_GET_FLAG(hjpeg, JPEG_FLAG_IFTF) != 0UL) { /*Input FIFO threshold flag rised*/ /*JPEG_FIFO_TH_SIZE words can be written in */ JPEG_ReadInputData(hjpeg, JPEG_FIFO_TH_SIZE); } else if (__HAL_JPEG_GET_FLAG(hjpeg, JPEG_FLAG_IFNFF) != 0UL) { /*Input FIFO Not Full flag rised*/ /*32-bit value can be written in */ JPEG_ReadInputData(hjpeg, 1); } else { /* Nothing to do */ } } /*Output FIFO flag handling*/ if ((hjpeg->Context & JPEG_CONTEXT_PAUSE_OUTPUT) == 0UL) { if (__HAL_JPEG_GET_FLAG(hjpeg, JPEG_FLAG_OFTF) != 0UL) { /*Output FIFO threshold flag rised*/ /*JPEG_FIFO_TH_SIZE words can be read out */ JPEG_StoreOutputData(hjpeg, JPEG_FIFO_TH_SIZE); } else if (__HAL_JPEG_GET_FLAG(hjpeg, JPEG_FLAG_OFNEF) != 0UL) { /*Output FIFO Not Empty flag rised*/ /*32-bit value can be read out */ JPEG_StoreOutputData(hjpeg, 1); } else { /* Nothing to do */ } } /*End of Conversion handling :i.e EOC flag is high and OFTF low and OFNEF low*/ if (__HAL_JPEG_GET_FLAG(hjpeg, JPEG_FLAG_EOCF | JPEG_FLAG_OFTF | JPEG_FLAG_OFNEF) == JPEG_FLAG_EOCF) { /*Stop Encoding/Decoding*/ hjpeg->Instance->CONFR0 &= ~JPEG_CONFR0_START; if ((hjpeg->Context & JPEG_CONTEXT_METHOD_MASK) == JPEG_CONTEXT_IT) { /* Disable All Interrupts */ __HAL_JPEG_DISABLE_IT(hjpeg, JPEG_INTERRUPT_MASK); } /* Clear all flags */ __HAL_JPEG_CLEAR_FLAG(hjpeg, JPEG_FLAG_ALL); /*Call End of conversion callback */ if (hjpeg->JpegOutCount > 0UL) { /*Output Buffer is not empty, call DecodedDataReadyCallback*/ #if (USE_HAL_JPEG_REGISTER_CALLBACKS == 1) hjpeg->DataReadyCallback(hjpeg, hjpeg->pJpegOutBuffPtr, hjpeg->JpegOutCount); #else HAL_JPEG_DataReadyCallback(hjpeg, hjpeg->pJpegOutBuffPtr, hjpeg->JpegOutCount); #endif /* USE_HAL_JPEG_REGISTER_CALLBACKS */ hjpeg->JpegOutCount = 0; } /*Reset Context Operation*/ tmpContext = hjpeg->Context; /*Clear all context fields execpt JPEG_CONTEXT_CONF_ENCODING and JPEG_CONTEXT_CUSTOM_TABLES*/ hjpeg->Context &= (JPEG_CONTEXT_CONF_ENCODING | JPEG_CONTEXT_CUSTOM_TABLES); /* Process Unlocked */ __HAL_UNLOCK(hjpeg); /* Change the JPEG state */ hjpeg->State = HAL_JPEG_STATE_READY; /*Call End of Encoding/Decoding callback */ if ((tmpContext & JPEG_CONTEXT_OPERATION_MASK) == JPEG_CONTEXT_DECODE) { #if (USE_HAL_JPEG_REGISTER_CALLBACKS == 1) hjpeg->DecodeCpltCallback(hjpeg); #else HAL_JPEG_DecodeCpltCallback(hjpeg); #endif /*USE_HAL_JPEG_REGISTER_CALLBACKS*/ } else /* JPEG_CONTEXT_ENCODE */ { #if (USE_HAL_JPEG_REGISTER_CALLBACKS == 1) hjpeg->EncodeCpltCallback(hjpeg); #else HAL_JPEG_EncodeCpltCallback(hjpeg); #endif } return JPEG_PROCESS_DONE; } return JPEG_PROCESS_ONGOING; } /** * @brief Store some output data from the JPEG peripheral to the output buffer. * This function is used when the JPEG peripheral has new data to output * in case of Polling or Interrupt process * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @param nbOutputWords Number of output words (of 32 bits) ready from the JPEG peripheral * @retval None */ static void JPEG_StoreOutputData(JPEG_HandleTypeDef *hjpeg, uint32_t nbOutputWords) { uint32_t index, nBwords, nbBytes, dataword; if (hjpeg->OutDataLength >= (hjpeg->JpegOutCount + (nbOutputWords * 4UL))) { for (index = 0; index < nbOutputWords; index++) { /*Transfer 32 bits from the JPEG output FIFO*/ dataword = hjpeg->Instance->DOR; hjpeg->pJpegOutBuffPtr[hjpeg->JpegOutCount] = (uint8_t)(dataword & 0x000000FFUL); hjpeg->pJpegOutBuffPtr[hjpeg->JpegOutCount + 1UL] = (uint8_t)((dataword & 0x0000FF00UL) >> 8); hjpeg->pJpegOutBuffPtr[hjpeg->JpegOutCount + 2UL] = (uint8_t)((dataword & 0x00FF0000UL) >> 16); hjpeg->pJpegOutBuffPtr[hjpeg->JpegOutCount + 3UL] = (uint8_t)((dataword & 0xFF000000UL) >> 24); hjpeg->JpegOutCount += 4UL; } if (hjpeg->OutDataLength == hjpeg->JpegOutCount) { /*Output Buffer is full, call DecodedDataReadyCallback*/ #if (USE_HAL_JPEG_REGISTER_CALLBACKS == 1) hjpeg->DataReadyCallback(hjpeg, hjpeg->pJpegOutBuffPtr, hjpeg->JpegOutCount); #else HAL_JPEG_DataReadyCallback(hjpeg, hjpeg->pJpegOutBuffPtr, hjpeg->JpegOutCount); #endif /*USE_HAL_JPEG_REGISTER_CALLBACKS*/ hjpeg->JpegOutCount = 0; } } else if (hjpeg->OutDataLength > hjpeg->JpegOutCount) { nBwords = (hjpeg->OutDataLength - hjpeg->JpegOutCount) / 4UL; for (index = 0; index < nBwords; index++) { /*Transfer 32 bits from the JPEG output FIFO*/ dataword = hjpeg->Instance->DOR; hjpeg->pJpegOutBuffPtr[hjpeg->JpegOutCount] = (uint8_t)(dataword & 0x000000FFUL); hjpeg->pJpegOutBuffPtr[hjpeg->JpegOutCount + 1UL] = (uint8_t)((dataword & 0x0000FF00UL) >> 8); hjpeg->pJpegOutBuffPtr[hjpeg->JpegOutCount + 2UL] = (uint8_t)((dataword & 0x00FF0000UL) >> 16); hjpeg->pJpegOutBuffPtr[hjpeg->JpegOutCount + 3UL] = (uint8_t)((dataword & 0xFF000000UL) >> 24); hjpeg->JpegOutCount += 4UL; } if (hjpeg->OutDataLength == hjpeg->JpegOutCount) { /*Output Buffer is full, call DecodedDataReadyCallback*/ #if (USE_HAL_JPEG_REGISTER_CALLBACKS == 1) hjpeg->DataReadyCallback(hjpeg, hjpeg->pJpegOutBuffPtr, hjpeg->JpegOutCount); #else HAL_JPEG_DataReadyCallback(hjpeg, hjpeg->pJpegOutBuffPtr, hjpeg->JpegOutCount); #endif /* USE_HAL_JPEG_REGISTER_CALLBACKS */ hjpeg->JpegOutCount = 0; } else { nbBytes = hjpeg->OutDataLength - hjpeg->JpegOutCount; dataword = hjpeg->Instance->DOR; for (index = 0; index < nbBytes; index++) { hjpeg->pJpegOutBuffPtr[hjpeg->JpegOutCount] = (uint8_t)((dataword >> (8UL * (index & 0x3UL))) & 0xFFUL); hjpeg->JpegOutCount++; } /*Output Buffer is full, call DecodedDataReadyCallback*/ #if (USE_HAL_JPEG_REGISTER_CALLBACKS == 1) hjpeg->DataReadyCallback(hjpeg, hjpeg->pJpegOutBuffPtr, hjpeg->JpegOutCount); #else HAL_JPEG_DataReadyCallback(hjpeg, hjpeg->pJpegOutBuffPtr, hjpeg->JpegOutCount); #endif /* USE_HAL_JPEG_REGISTER_CALLBACKS */ hjpeg->JpegOutCount = 0; nbBytes = 4UL - nbBytes; for (index = nbBytes; index < 4UL; index++) { hjpeg->pJpegOutBuffPtr[hjpeg->JpegOutCount] = (uint8_t)((dataword >> (8UL * index)) & 0xFFUL); hjpeg->JpegOutCount++; } } } else { /* Nothing to do */ } } /** * @brief Read some input Data from the input buffer. * This function is used when the JPEG peripheral needs new data * in case of Polling or Interrupt process * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @param nbRequestWords Number of input words (of 32 bits) that the JPE peripheral request * @retval None */ static void JPEG_ReadInputData(JPEG_HandleTypeDef *hjpeg, uint32_t nbRequestWords) { uint32_t nbBytes = 0, nBwords, index, Dataword, inputCount; if ((hjpeg->InDataLength == 0UL) || (nbRequestWords == 0UL)) { /* No more Input data : nothing to do*/ (void) HAL_JPEG_Pause(hjpeg, JPEG_PAUSE_RESUME_INPUT); } else if (hjpeg->InDataLength > hjpeg->JpegInCount) { nbBytes = hjpeg->InDataLength - hjpeg->JpegInCount; } else if (hjpeg->InDataLength == hjpeg->JpegInCount) { /*Call HAL_JPEG_GetDataCallback to get new data */ #if (USE_HAL_JPEG_REGISTER_CALLBACKS == 1) hjpeg->GetDataCallback(hjpeg, hjpeg->JpegInCount); #else HAL_JPEG_GetDataCallback(hjpeg, hjpeg->JpegInCount); #endif /*USE_HAL_JPEG_REGISTER_CALLBACKS*/ if (hjpeg->InDataLength > 4UL) { hjpeg->InDataLength = hjpeg->InDataLength - (hjpeg->InDataLength % 4UL); } hjpeg->JpegInCount = 0; nbBytes = hjpeg->InDataLength; } else { /* Nothing to do */ } if (((hjpeg->Context & JPEG_CONTEXT_PAUSE_INPUT) == 0UL) && (nbBytes > 0UL)) { nBwords = nbBytes / 4UL; if (nBwords >= nbRequestWords) { for (index = 0; index < nbRequestWords; index++) { inputCount = hjpeg->JpegInCount; hjpeg->Instance->DIR = (((uint32_t)(hjpeg->pJpegInBuffPtr[inputCount])) | \ (((uint32_t)(hjpeg->pJpegInBuffPtr[inputCount + 1UL])) << 8) | \ (((uint32_t)(hjpeg->pJpegInBuffPtr[inputCount + 2UL])) << 16) | \ (((uint32_t)(hjpeg->pJpegInBuffPtr[inputCount + 3UL])) << 24)); hjpeg->JpegInCount += 4UL; } } else /*nBwords < nbRequestWords*/ { if (nBwords > 0UL) { for (index = 0; index < nBwords; index++) { inputCount = hjpeg->JpegInCount; hjpeg->Instance->DIR = (((uint32_t)(hjpeg->pJpegInBuffPtr[inputCount])) | \ (((uint32_t)(hjpeg->pJpegInBuffPtr[inputCount + 1UL])) << 8) | \ (((uint32_t)(hjpeg->pJpegInBuffPtr[inputCount + 2UL])) << 16) | \ (((uint32_t)(hjpeg->pJpegInBuffPtr[inputCount + 3UL])) << 24)); hjpeg->JpegInCount += 4UL; } } else { /* end of file*/ Dataword = 0; for (index = 0; index < nbBytes; index++) { Dataword |= (uint32_t)hjpeg->pJpegInBuffPtr[hjpeg->JpegInCount] << (8UL * (index & 0x03UL)); hjpeg->JpegInCount++; } hjpeg->Instance->DIR = Dataword; } } } } /** * @brief Start the JPEG DMA process (encoding/decoding) * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @retval JPEG_PROCESS_DONE if process ends else JPEG_PROCESS_ONGOING */ static HAL_StatusTypeDef JPEG_DMA_StartProcess(JPEG_HandleTypeDef *hjpeg) { if ((hjpeg->InDataLength < 4UL) || (hjpeg->OutDataLength < 4UL)) { return HAL_ERROR; } /* Reset Ending DMA internal context flag*/ hjpeg->Context &= ~JPEG_CONTEXT_ENDING_DMA; /* Disable DMA In/Out Request*/ JPEG_DISABLE_DMA(hjpeg, JPEG_DMA_ODMA | JPEG_DMA_IDMA); /* Set the JPEG DMA In transfer complete callback */ hjpeg->hdmain->XferCpltCallback = JPEG_DMAInCpltCallback; /* Set the DMA In error callback */ hjpeg->hdmain->XferErrorCallback = JPEG_DMAErrorCallback; /* Set the JPEG DMA Out transfer complete callback */ hjpeg->hdmaout->XferCpltCallback = JPEG_DMAOutCpltCallback; /* Set the DMA Out error callback */ hjpeg->hdmaout->XferErrorCallback = JPEG_DMAErrorCallback; /* Set the DMA Out Abort callback */ hjpeg->hdmaout->XferAbortCallback = JPEG_DMAOutAbortCallback; /*DMA transfer size must be a multiple of 4 bytes i.e mutliple of 32bits words*/ hjpeg->InDataLength = hjpeg->InDataLength - (hjpeg->InDataLength % 4UL); /*DMA transfer size must be a multiple of 4 bytes i.e mutliple of 32bits words*/ hjpeg->OutDataLength = hjpeg->OutDataLength - (hjpeg->OutDataLength % 4UL); /* Start DMA FIFO In transfer */ if (HAL_DMA_Start_IT(hjpeg->hdmain, (uint32_t)hjpeg->pJpegInBuffPtr, (uint32_t)&hjpeg->Instance->DIR, hjpeg->InDataLength >> 2) != HAL_OK) { hjpeg->ErrorCode |= HAL_JPEG_ERROR_DMA; return HAL_ERROR; } /* Start DMA FIFO Out transfer */ if (HAL_DMA_Start_IT(hjpeg->hdmaout, (uint32_t)&hjpeg->Instance->DOR, (uint32_t)hjpeg->pJpegOutBuffPtr, hjpeg->OutDataLength >> 2) != HAL_OK) { hjpeg->ErrorCode |= HAL_JPEG_ERROR_DMA; return HAL_ERROR; } /* Enable JPEG In/Out DMA requests*/ JPEG_ENABLE_DMA(hjpeg, JPEG_DMA_IDMA | JPEG_DMA_ODMA); return HAL_OK; } /** * @brief Continue the current JPEG DMA process (encoding/decoding) * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @retval JPEG_PROCESS_DONE if process ends else JPEG_PROCESS_ONGOING */ static void JPEG_DMA_ContinueProcess(JPEG_HandleTypeDef *hjpeg) { /*End of header processing flag rises*/ if ((hjpeg->Context & JPEG_CONTEXT_OPERATION_MASK) == JPEG_CONTEXT_DECODE) { if (__HAL_JPEG_GET_FLAG(hjpeg, JPEG_FLAG_HPDF) != 0UL) { /*Call Header parsing complete callback */ (void) HAL_JPEG_GetInfo(hjpeg, &hjpeg->Conf); /* Reset the ImageQuality */ hjpeg->Conf.ImageQuality = 0; /* Note : the image quality is only available at the end of the decoding operation */ /* at the current stage the calculated image quality is not correct so reset it */ /*Call Info Ready callback */ #if (USE_HAL_JPEG_REGISTER_CALLBACKS == 1) hjpeg->InfoReadyCallback(hjpeg, &hjpeg->Conf); #else HAL_JPEG_InfoReadyCallback(hjpeg, &hjpeg->Conf); #endif /* USE_HAL_JPEG_REGISTER_CALLBACKS */ __HAL_JPEG_DISABLE_IT(hjpeg, JPEG_IT_HPD); /* Clear header processing done flag */ __HAL_JPEG_CLEAR_FLAG(hjpeg, JPEG_FLAG_HPDF); } } /*End of Conversion handling*/ if (__HAL_JPEG_GET_FLAG(hjpeg, JPEG_FLAG_EOCF) != 0UL) { /*Disabkle JPEG In/Out DMA Requests*/ JPEG_DISABLE_DMA(hjpeg, JPEG_DMA_ODMA | JPEG_DMA_IDMA); hjpeg->Context |= JPEG_CONTEXT_ENDING_DMA; /*Stop Encoding/Decoding*/ hjpeg->Instance->CONFR0 &= ~JPEG_CONFR0_START; __HAL_JPEG_DISABLE_IT(hjpeg, JPEG_INTERRUPT_MASK); /* Clear all flags */ __HAL_JPEG_CLEAR_FLAG(hjpeg, JPEG_FLAG_ALL); if (hjpeg->hdmain->State == HAL_DMA_STATE_BUSY) { /* Stop the DMA In Xfer*/ (void) HAL_DMA_Abort_IT(hjpeg->hdmain); } if (hjpeg->hdmaout->State == HAL_DMA_STATE_BUSY) { /* Stop the DMA out Xfer*/ (void) HAL_DMA_Abort_IT(hjpeg->hdmaout); } else { JPEG_DMA_EndProcess(hjpeg); } } } /** * @brief Finalize the current JPEG DMA process (encoding/decoding) * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @retval JPEG_PROCESS_DONE */ static void JPEG_DMA_EndProcess(JPEG_HandleTypeDef *hjpeg) { uint32_t tmpContext; hjpeg->JpegOutCount = hjpeg->OutDataLength - ((hjpeg->hdmaout->Instance->NDTR & DMA_SxNDT) << 2); /*if Output Buffer is full, call HAL_JPEG_DataReadyCallback*/ if (hjpeg->JpegOutCount == hjpeg->OutDataLength) { #if (USE_HAL_JPEG_REGISTER_CALLBACKS == 1) hjpeg->DataReadyCallback(hjpeg, hjpeg->pJpegOutBuffPtr, hjpeg->JpegOutCount); #else HAL_JPEG_DataReadyCallback(hjpeg, hjpeg->pJpegOutBuffPtr, hjpeg->JpegOutCount); #endif /* USE_HAL_JPEG_REGISTER_CALLBACKS */ hjpeg->JpegOutCount = 0; } /*Check if remaining data in the output FIFO*/ if (__HAL_JPEG_GET_FLAG(hjpeg, JPEG_FLAG_OFNEF) == 0UL) { if (hjpeg->JpegOutCount > 0UL) { /*Output Buffer is not empty, call DecodedDataReadyCallback*/ #if (USE_HAL_JPEG_REGISTER_CALLBACKS == 1) hjpeg->DataReadyCallback(hjpeg, hjpeg->pJpegOutBuffPtr, hjpeg->JpegOutCount); #else HAL_JPEG_DataReadyCallback(hjpeg, hjpeg->pJpegOutBuffPtr, hjpeg->JpegOutCount); #endif /* USE_HAL_JPEG_REGISTER_CALLBACKS */ hjpeg->JpegOutCount = 0; } /*Stop Encoding/Decoding*/ hjpeg->Instance->CONFR0 &= ~JPEG_CONFR0_START; tmpContext = hjpeg->Context; /*Clear all context fileds execpt JPEG_CONTEXT_CONF_ENCODING and JPEG_CONTEXT_CUSTOM_TABLES*/ hjpeg->Context &= (JPEG_CONTEXT_CONF_ENCODING | JPEG_CONTEXT_CUSTOM_TABLES); /* Process Unlocked */ __HAL_UNLOCK(hjpeg); /* Change the JPEG state */ hjpeg->State = HAL_JPEG_STATE_READY; /*Call End of Encoding/Decoding callback */ if ((tmpContext & JPEG_CONTEXT_OPERATION_MASK) == JPEG_CONTEXT_DECODE) { #if (USE_HAL_JPEG_REGISTER_CALLBACKS == 1) hjpeg->DecodeCpltCallback(hjpeg); #else HAL_JPEG_DecodeCpltCallback(hjpeg); #endif /* USE_HAL_JPEG_REGISTER_CALLBACKS */ } else /* JPEG_CONTEXT_ENCODE */ { #if (USE_HAL_JPEG_REGISTER_CALLBACKS == 1) hjpeg->EncodeCpltCallback(hjpeg); #else HAL_JPEG_EncodeCpltCallback(hjpeg); #endif /* USE_HAL_JPEG_REGISTER_CALLBACKS */ } } else if ((hjpeg->Context & JPEG_CONTEXT_PAUSE_OUTPUT) == 0UL) { JPEG_DMA_PollResidualData(hjpeg); } else { /* Nothing to do */ } } /** * @brief Poll residual output data when DMA process (encoding/decoding) * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @retval None. */ static void JPEG_DMA_PollResidualData(JPEG_HandleTypeDef *hjpeg) { uint32_t tmpContext, count, dataOut; for (count = JPEG_FIFO_SIZE; count > 0UL; count--) { if ((hjpeg->Context & JPEG_CONTEXT_PAUSE_OUTPUT) == 0UL) { if (__HAL_JPEG_GET_FLAG(hjpeg, JPEG_FLAG_OFNEF) != 0UL) { dataOut = hjpeg->Instance->DOR; hjpeg->pJpegOutBuffPtr[hjpeg->JpegOutCount] = (uint8_t)(dataOut & 0x000000FFUL); hjpeg->pJpegOutBuffPtr[hjpeg->JpegOutCount + 1UL] = (uint8_t)((dataOut & 0x0000FF00UL) >> 8); hjpeg->pJpegOutBuffPtr[hjpeg->JpegOutCount + 2UL] = (uint8_t)((dataOut & 0x00FF0000UL) >> 16); hjpeg->pJpegOutBuffPtr[hjpeg->JpegOutCount + 3UL] = (uint8_t)((dataOut & 0xFF000000UL) >> 24); hjpeg->JpegOutCount += 4UL; if (hjpeg->JpegOutCount == hjpeg->OutDataLength) { /*Output Buffer is full, call HAL_JPEG_DataReadyCallback*/ #if (USE_HAL_JPEG_REGISTER_CALLBACKS == 1) hjpeg->DataReadyCallback(hjpeg, hjpeg->pJpegOutBuffPtr, hjpeg->JpegOutCount); #else HAL_JPEG_DataReadyCallback(hjpeg, hjpeg->pJpegOutBuffPtr, hjpeg->JpegOutCount); #endif /* USE_HAL_JPEG_REGISTER_CALLBACKS */ hjpeg->JpegOutCount = 0; } } } } tmpContext = hjpeg->Context; if ((__HAL_JPEG_GET_FLAG(hjpeg, JPEG_FLAG_OFNEF) == 0UL) || ((tmpContext & JPEG_CONTEXT_PAUSE_OUTPUT) == 0UL)) { /*Stop Encoding/Decoding*/ hjpeg->Instance->CONFR0 &= ~JPEG_CONFR0_START; if (hjpeg->JpegOutCount > 0UL) { /*Output Buffer is not empty, call DecodedDataReadyCallback*/ #if (USE_HAL_JPEG_REGISTER_CALLBACKS == 1) hjpeg->DataReadyCallback(hjpeg, hjpeg->pJpegOutBuffPtr, hjpeg->JpegOutCount); #else HAL_JPEG_DataReadyCallback(hjpeg, hjpeg->pJpegOutBuffPtr, hjpeg->JpegOutCount); #endif /* USE_HAL_JPEG_REGISTER_CALLBACKS */ hjpeg->JpegOutCount = 0; } tmpContext = hjpeg->Context; /*Clear all context fileds execpt JPEG_CONTEXT_CONF_ENCODING and JPEG_CONTEXT_CUSTOM_TABLES*/ hjpeg->Context &= (JPEG_CONTEXT_CONF_ENCODING | JPEG_CONTEXT_CUSTOM_TABLES); /* Process Unlocked */ __HAL_UNLOCK(hjpeg); /* Change the JPEG state */ hjpeg->State = HAL_JPEG_STATE_READY; /*Call End of Encoding/Decoding callback */ if ((tmpContext & JPEG_CONTEXT_OPERATION_MASK) == JPEG_CONTEXT_DECODE) { #if (USE_HAL_JPEG_REGISTER_CALLBACKS == 1) hjpeg->DecodeCpltCallback(hjpeg); #else HAL_JPEG_DecodeCpltCallback(hjpeg); #endif /* USE_HAL_JPEG_REGISTER_CALLBACKS */ } else /* JPEG_CONTEXT_ENCODE */ { #if (USE_HAL_JPEG_REGISTER_CALLBACKS == 1) hjpeg->EncodeCpltCallback(hjpeg); #else HAL_JPEG_EncodeCpltCallback(hjpeg); #endif /* USE_HAL_JPEG_REGISTER_CALLBACKS */ } } } /** * @brief DMA input transfer complete callback * @param hdma pointer to a DMA_HandleTypeDef structure. * @retval None */ static void JPEG_DMAInCpltCallback(DMA_HandleTypeDef *hdma) { JPEG_HandleTypeDef *hjpeg = (JPEG_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; /* Disable The JPEG IT so the DMA Input Callback can not be interrupted by the JPEG EOC IT or JPEG HPD IT */ __HAL_JPEG_DISABLE_IT(hjpeg, JPEG_INTERRUPT_MASK); if ((hjpeg->Context & (JPEG_CONTEXT_METHOD_MASK | JPEG_CONTEXT_ENDING_DMA)) == JPEG_CONTEXT_DMA) /* Check if context method is DMA and we are not in ending DMA stage */ { JPEG_DISABLE_DMA(hjpeg, JPEG_DMA_IDMA); hjpeg->JpegInCount = hjpeg->InDataLength - ((hdma->Instance->NDTR & DMA_SxNDT) << 2); /*Call HAL_JPEG_GetDataCallback to get new data */ #if (USE_HAL_JPEG_REGISTER_CALLBACKS == 1) hjpeg->GetDataCallback(hjpeg, hjpeg->JpegInCount); #else HAL_JPEG_GetDataCallback(hjpeg, hjpeg->JpegInCount); #endif /* USE_HAL_JPEG_REGISTER_CALLBACKS */ if (hjpeg->InDataLength >= 4UL) { /*JPEG Input DMA transfer data number must be multiple of 32 bits word as the destination is a 32 bits (4 bytes) register */ hjpeg->InDataLength = hjpeg->InDataLength - (hjpeg->InDataLength % 4UL); } else if (hjpeg->InDataLength > 0UL) { /*Transfer last data word (i.e last 4 bytes)*/ hjpeg->InDataLength = 4; } if (((hjpeg->Context & JPEG_CONTEXT_PAUSE_INPUT) == 0UL) && (hjpeg->InDataLength > 0UL)) { /* Start DMA FIFO In transfer */ if (HAL_DMA_Start_IT(hjpeg->hdmain, (uint32_t)hjpeg->pJpegInBuffPtr, (uint32_t)&hjpeg->Instance->DIR, hjpeg->InDataLength >> 2) != HAL_OK) { hjpeg->ErrorCode |= HAL_JPEG_ERROR_DMA; hjpeg->State = HAL_JPEG_STATE_ERROR; #if (USE_HAL_JPEG_REGISTER_CALLBACKS == 1) hjpeg->ErrorCallback(hjpeg); #else HAL_JPEG_ErrorCallback(hjpeg); #endif /* USE_HAL_JPEG_REGISTER_CALLBACKS */ return; } JPEG_ENABLE_DMA(hjpeg, JPEG_DMA_IDMA); } /* JPEG Conversion still on going : Enable the JPEG IT */ __HAL_JPEG_ENABLE_IT(hjpeg, JPEG_IT_EOC | JPEG_IT_HPD); } } /** * @brief DMA output transfer complete callback * @param hdma pointer to a DMA_HandleTypeDef structure. * @retval None */ static void JPEG_DMAOutCpltCallback(DMA_HandleTypeDef *hdma) { JPEG_HandleTypeDef *hjpeg = (JPEG_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; /* Disable The JPEG IT so the DMA Output Callback can not be interrupted by the JPEG EOC IT or JPEG HPD IT */ __HAL_JPEG_DISABLE_IT(hjpeg, JPEG_INTERRUPT_MASK); if ((hjpeg->Context & (JPEG_CONTEXT_METHOD_MASK | JPEG_CONTEXT_ENDING_DMA)) == JPEG_CONTEXT_DMA) /* Check if context method is DMA and we are not in ending DMA stage */ { if (__HAL_JPEG_GET_FLAG(hjpeg, JPEG_FLAG_EOCF) == 0UL) { JPEG_DISABLE_DMA(hjpeg, JPEG_DMA_ODMA); hjpeg->JpegOutCount = hjpeg->OutDataLength - ((hdma->Instance->NDTR & DMA_SxNDT) << 2); /*Output Buffer is full, call HAL_JPEG_DataReadyCallback*/ #if (USE_HAL_JPEG_REGISTER_CALLBACKS == 1) hjpeg->DataReadyCallback(hjpeg, hjpeg->pJpegOutBuffPtr, hjpeg->JpegOutCount); #else HAL_JPEG_DataReadyCallback(hjpeg, hjpeg->pJpegOutBuffPtr, hjpeg->JpegOutCount); #endif /* USE_HAL_JPEG_REGISTER_CALLBACKS */ if ((hjpeg->Context & JPEG_CONTEXT_PAUSE_OUTPUT) == 0UL) { /* Start DMA FIFO Out transfer */ if (HAL_DMA_Start_IT(hjpeg->hdmaout, (uint32_t)&hjpeg->Instance->DOR, (uint32_t)hjpeg->pJpegOutBuffPtr, hjpeg->OutDataLength >> 2) != HAL_OK) { hjpeg->ErrorCode |= HAL_JPEG_ERROR_DMA; hjpeg->State = HAL_JPEG_STATE_ERROR; #if (USE_HAL_JPEG_REGISTER_CALLBACKS == 1) hjpeg->ErrorCallback(hjpeg); #else HAL_JPEG_ErrorCallback(hjpeg); #endif /* USE_HAL_JPEG_REGISTER_CALLBACKS */ return; } JPEG_ENABLE_DMA(hjpeg, JPEG_DMA_ODMA); } } /* JPEG Conversion still on going : Enable the JPEG IT */ __HAL_JPEG_ENABLE_IT(hjpeg, JPEG_IT_EOC | JPEG_IT_HPD); } } /** * @brief DMA Transfer error callback * @param hdma pointer to a DMA_HandleTypeDef structure. * @retval None */ static void JPEG_DMAErrorCallback(DMA_HandleTypeDef *hdma) { JPEG_HandleTypeDef *hjpeg = (JPEG_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; /* if DMA error is FIFO error ignore it */ if (HAL_DMA_GetError(hdma) != HAL_DMA_ERROR_FE) { /*Stop Encoding/Decoding*/ hjpeg->Instance->CONFR0 &= ~JPEG_CONFR0_START; /* Disable All Interrupts */ __HAL_JPEG_DISABLE_IT(hjpeg, JPEG_INTERRUPT_MASK); /* Disable All DMA requests */ JPEG_DISABLE_DMA(hjpeg, JPEG_DMA_MASK); hjpeg->State = HAL_JPEG_STATE_READY; hjpeg->ErrorCode |= HAL_JPEG_ERROR_DMA; #if (USE_HAL_JPEG_REGISTER_CALLBACKS == 1) hjpeg->ErrorCallback(hjpeg); #else HAL_JPEG_ErrorCallback(hjpeg); #endif /* USE_HAL_JPEG_REGISTER_CALLBACKS */ } } /** * @brief DMA output Abort callback * @param hdma pointer to a DMA_HandleTypeDef structure. * @retval None */ static void JPEG_DMAOutAbortCallback(DMA_HandleTypeDef *hdma) { JPEG_HandleTypeDef *hjpeg = (JPEG_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; if ((hjpeg->Context & JPEG_CONTEXT_ENDING_DMA) != 0UL) { JPEG_DMA_EndProcess(hjpeg); } } /** * @brief Calculate the decoded image quality (from 1 to 100) * @param hjpeg pointer to a JPEG_HandleTypeDef structure that contains * the configuration information for JPEG module * @retval JPEG image quality from 1 to 100. */ static uint32_t JPEG_GetQuality(JPEG_HandleTypeDef *hjpeg) { uint32_t quality = 0; uint32_t quantRow, quantVal, scale, i, j; __IO uint32_t *tableAddress = hjpeg->Instance->QMEM0; i = 0; while (i < (JPEG_QUANT_TABLE_SIZE - 3UL)) { quantRow = *tableAddress; for (j = 0; j < 4UL; j++) { quantVal = (quantRow >> (8UL * j)) & 0xFFUL; if (quantVal == 1UL) { /* if Quantization value = 1 then quality is 100%*/ quality += 100UL; } else { /* Note that the quantization coefficients must be specified in the table in zigzag order */ scale = (quantVal * 100UL) / ((uint32_t) hjpeg->QuantTable0[JPEG_ZIGZAG_ORDER[i + j]]); if (scale <= 100UL) { quality += (200UL - scale) / 2UL; } else { quality += 5000UL / scale; } } } i += 4UL; tableAddress ++; } return (quality / 64UL); } /** * @} */ #endif /* JPEG */ #endif /* HAL_JPEG_MODULE_ENABLED */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ ```
Moerkapelle is a small town in the Dutch province of South Holland. It is located about 6 km east of the city of Zoetermeer, in the municipality of Zuidplas. Moerkapelle was a separate municipality between 1817 and 1991, when it merged with Zevenhuizen, to create a new municipality originally called "Moerhuizen". In 1992, it changed its name to Zevenhuizen-Moerkapelle. Its name is derived from the combination of moeras (swamp) and kapel (chapel). History The hamlet Op Moer formed circa 1400. Around 1560 the first reference was made to the existence of a chapel, which served as a school and farmhouse after the completion of the village church in 1667. After the formation of the polder "Wildeveenen" in the 17th century, agricultural activity began and led to a population increase in Moerkapelle. References Populated places in South Holland Former municipalities of South Holland Zuidplas
In ice hockey, a deke is a type of feint or fake technique whereby a player draws an opposing player out of position or skates by the opponent while maintaining possession and control of the puck. The term is a Canadianism formed by abbreviating the word decoy. The position of the player performing the deke and the defender determines where the puck will be moved and the speed. The deke can be used to move the puck out of reach of an opposing player, move the puck past the opposing player, or quickly change direction of the puck so the opposing player is caught out of position. Dekes are usually used in combination with either a change of direction or speed, or both; the deke may refer to the entire sequence of actions as well as the maneuver(s) made with the stick. Often a change in direction or a change in speed is enough to get past an opposing player, but dekes are used in combination with these to better protect the puck and get by a defender. Types One type is the head fake, using a movement of the head to fool an opposing player over the player's movements or intention. Toe drag A more complex deke is the toe drag, a deke in which the puck carrier brings the puck forward on their forehand, and subsequently turns their stick and pulls the puck towards themselves with the toe of the blade, while moving past the defender, who has presumably attempted to poke check the puck in its previous position. Recreational rules In recreational hockey in Canada, including ice hockey but also especially floor hockey and street hockey where penalty shots are often awarded in cases of fouls for which timed penalties would be assessed at competitive levels, penalty shooters are often expected to declare whether they intend to "shoot or deke" prior to attempting the shot. Should the offensive player wish to "shoot," (s)he is expected to shoot the puck/ball on goal from the spot it is placed, which in a recreational game is often less than thirty feet from the goal. Should the offensive player wish to "deke," the goaltender is usually permitted to leave his or her crease from the moment the puck/ball is touched to attempt to prevent the offensive player from scoring. References Ice hockey terminology Ice hockey skills
Marko V. Jarić (Марко Вукобрат Јарић; March 17, 1952 in Belgrade, Serbia – October 25, 1997 in College Station, Texas) was a Serbian-American physicist. He served as visiting professor at Montana State University and Harvard University, and full professor at Texas A&M University Jarić was a leading researcher in the field of Quasi-Crystals authoring and editing four influential books. An annual award was established in his name, known as the "Serbian Nobel Prize," for excellence in physics by a Serbian born physicist. References External links Marko V. Jaric Serbian Wikipedia Entry 1952 births 1997 deaths Theoretical physicists Serbian physicists Yugoslav emigrants to the United States Scientists from Belgrade Texas A&M University faculty
Pavlo Yuhymovych Hrytsenko () (September 23, 1950) is a Ukrainian linguist, doctor of Philology, professor, director of Institute for the Ukrainian Language (Kyiv). Born in Matroska, Izmail Raion, Odesa Oblast, Ukraine. Hrytsenko is a specialist in dialectology of the Ukrainian language, typology of Slavic dialect systems, theory of linguistic geography, dialectal textology and textography, history of linguistics. He is a co-executor of The Slavic Linguistic Atlas, vol. 3, 4а, 4б, 5, 6, 8 (1994–2009). Hrytsenko is the initiator of a research for dialects in the Chernobyl Exclusion Zone. He is a head of base preparation for Ukrainian dialects dictionary. Hrytsenko is the member of some international groups of International Committee of Slavists (The Slavic Linguistic Atlas Group, Ethnolinguistics Group), member of editorial board of The Slavic Linguistic Atlas. Hrytsenko is the author of over 400 publications in Ukrainian and others Slavic languages. External links Професор Павло Юхимович Гриценко. Матеріали до бібліографії вчених. — Черкаси, 2010. — 110 с. Н. П. Прилипко. Гриценко Павло Юхимович // :uk:Українська мова (енциклопедія). — К.: Українська енциклопедія, 2007. Гриценко Павло Юхимович // :uk:Енциклопедія Сучасної України (Encyclopedia of Modern Ukraine). 1950 births Linguists from Ukraine Living people Ukrainianists
William Fox (9 August 1912 – 6 March 1999) was an English freestyle sport wrestler who competed for Great Britain in the 1936 Summer Olympics. In 1936 he competed in the freestyle welterweight tournament. At the 1934 Empire Games he won the silver medal in the freestyle welterweight class. References External links 1912 births 1999 deaths Olympic wrestlers for Great Britain Wrestlers at the 1936 Summer Olympics British male sport wrestlers Wrestlers at the 1934 British Empire Games Commonwealth Games silver medallists for England Commonwealth Games medallists in wrestling Medallists at the 1934 British Empire Games
Political Process and the Development of the Black Insurgency, 1930–1970 is a 1982 book by the sociologist Doug McAdam (published by the University of Chicago Press). The book details the rise and fall of the American Civil Rights Movement by looking at it through the paradigm of the opportunities available via the established political structure, and more specifically the opportunity for social movement groups to make successful claims of grievances. 1982 non-fiction books History of African-American civil rights Sociology books
```objective-c #ifndef wkeMediaPlayer_h #define wkeMediaPlayer_h #include "wkedefine.h" typedef struct HDC__* HDC; namespace wke { class FFmpegUrlProtocol { public: virtual void destroy() = 0; // Read the given amount of bytes into data, returns the number of bytes read // if successful, kReadError otherwise. virtual int read(int size, char* data) = 0; // Returns true and the current file position for this file, false if the // file position could not be retrieved. virtual bool getPosition(__int64* position_out) = 0; // Returns true if the file position could be set, false otherwise. virtual bool setPosition(__int64 position) = 0; // Returns true and the file size, false if the file size could not be // retrieved. virtual bool getSize(__int64* size_out) = 0; // Returns false if this protocol supports random seeking. virtual bool isStreaming() = 0; }; class DataSource { public: enum { kReadError = -1 }; // Used to specify video preload states. They are "hints" to the browser about // how aggressively the browser should load and buffer data. // Please see the HTML5 spec for the descriptions of these values: // path_to_url#attr-media-preload // // Enum values must match the values in blink::WebMediaPlayer::Preload and // there will be assertions at compile time if they do not match. enum Preload { NONE, METADATA, AUTO, }; virtual void willDestroyed() = 0; virtual void destroy() = 0; ~DataSource() {} class DownloadingCB { public: virtual void notifyDownloading(bool) = 0; }; class InitializeCB { public: virtual void notifyInitialize(bool) = 0; }; // Executes |init_cb| with the result of initialization when it has completed. // Method called on the render thread. virtual void initialize(InitializeCB* initCb) = 0; // Adjusts the buffering algorithm based on the given preload value. virtual void setPreload(Preload preload) = 0; // Returns true if the media resource has a single origin, false otherwise. // Only valid to call after Initialize() has completed. // // Method called on the render thread. virtual bool hasSingleOrigin() = 0; // Returns true if the media resource passed a CORS access control check. virtual bool didPassCORSAccessCheck() const = 0; // Cancels initialization, any pending loaders, and any pending read calls // from the demuxer. The caller is expected to release its reference to this // object and never call it again. // // Method called on the render thread. virtual void abort() = 0; // Notifies changes in playback state for controlling media buffering // behavior. virtual void mediaPlaybackRateChanged(double playbackRate) = 0; virtual void mediaIsPlaying() = 0; virtual void mediaIsPaused() = 0; virtual bool mediaHasPlayed() const = 0; // Returns true if the resource is local. virtual bool isAssumeFullyBuffered() = 0; // Cancels any open network connections once reaching the deferred state for // preload=metadata, non-streaming resources that have not started playback. // If already deferred, connections will be immediately closed. virtual void onBufferingHaveEnough() = 0; // Returns an estimate of the number of bytes held by the data source. virtual __int64 getMemoryUsage() const = 0; // DataSource implementation. // Called from demuxer thread. virtual void stop() = 0; class ReadCB { public: virtual void signalReadCompleted(int size) = 0; }; virtual void read(__int64 position, int size, char* data, ReadCB* readCb) = 0; virtual bool getSize(__int64* size_out) = 0; virtual bool isStreaming() = 0; virtual void setBitrate(int bitrate) = 0; }; class DataSourceHost { public: virtual void destroy() = 0; virtual ~DataSourceHost() = 0; virtual void setTotalBytes(__int64 total_bytes) = 0; virtual void addBufferedByteRange(__int64 start, __int64 end) = 0; // Translate the byte ranges to time ranges and append them to the list. // TODO(sandersd): This is a confusing name, find something better. virtual void addBufferedTimeRanges(void* buffered_time_ranges, double media_duration) = 0; virtual bool didLoadingProgress() = 0; }; class WkeMediaPlayer { public: enum NetworkState { kWkeNetworkStateEmpty, kWkeNetworkStateIdle, kWkeNetworkStateLoading, kWkeNetworkStateLoaded, kWkeNetworkStateFormatError, kWkeNetworkStateNetworkError, kWkeNetworkStateDecodeError, }; enum ReadyState { kWkeReadyStateHaveNothing, kWkeReadyStateHaveMetadata, kWkeReadyStateHaveCurrentData, kWkeReadyStateHaveFutureData, kWkeReadyStateHaveEnoughData, }; enum Preload { kWkePreloadNone, kWkePreloadMetaData, kWkePreloadAuto, }; // Represents synchronous exceptions that can be thrown from the Encrypted // Media methods. This is different from the asynchronous MediaKeyError. enum MediaKeyException { kWkeMediaKeyExceptionNoError, kWkeMediaKeyExceptionInvalidPlayerState, kWkeMediaKeyExceptionKeySystemNotSupported, kWkeMediaKeyExceptionInvalidAccess, }; enum CORSMode { kWkeCORSModeUnspecified, kWkeCORSModeAnonymous, kWkeCORSModeUseCredentials, }; enum LoadType { kWkeLoadTypeURL, kWkeLoadTypeMediaSource, kWkeLoadTypeMediaStream, }; // struct MediaTimeRange { // MediaTimeRange() : start(0), end(0) {} // MediaTimeRange(double s, double e) : start(s), end(e) {} // // double start; // double end; // }; struct TimeRange { TimeRange() : start(0), end(0) { } TimeRange(double s, double e) : start(s), end(e) { } double start; double end; }; class TimeRanges { public: virtual void destroy() = 0; virtual TimeRange* getRange(size_t i) = 0; virtual size_t size() = 0; }; typedef unsigned TrackId; ~WkeMediaPlayer() {} virtual void destroy() = 0; virtual void load(LoadType, const char*, CORSMode, bool) = 0; // Playback controls. virtual void play() = 0; virtual void pause() = 0; virtual bool supportsSave() const = 0; virtual void seek(double seconds) = 0; virtual void setRate(double) = 0; virtual void setVolume(double) = 0; virtual void requestRemotePlayback() {} virtual void requestRemotePlaybackControl() {} virtual void setPreload(Preload) {} virtual wkeMemBuf* buffered() const = 0; virtual TimeRanges* seekable() const = 0; // Attempts to switch the audio output device. // Implementations of setSinkId take ownership of the WebCallbacks // object, and the WebCallbacks object takes ownership of the returned // error value, if any. // Note also that setSinkId implementations must make sure that all // methods of the WebCallbacks object, including constructors and // destructors, run in the same thread where the object is created // (i.e., the blink thread). virtual void setSinkId(const char* deviceId, void*) = 0; // True if the loaded media has a playable video/audio track. virtual bool hasVideo() const = 0; virtual bool hasAudio() const = 0; // True if the media is being played on a remote device. virtual bool isRemote() const { return false; } // Dimension of the video. virtual wkePoint naturalSize() const = 0; // Getters of playback state. virtual bool paused() const = 0; virtual bool seeking() const = 0; virtual double duration() const = 0; virtual double currentTime() const = 0; // Internal states of loading and network. virtual NetworkState networkState() const = 0; virtual ReadyState readyState() const = 0; virtual bool didLoadingProgress() = 0; virtual bool hasSingleSecurityOrigin() const = 0; virtual bool didPassCORSAccessCheck() const = 0; virtual double mediaTimeForTimeValue(double timeValue) const = 0; virtual unsigned decodedFrameCount() const = 0; virtual unsigned droppedFrameCount() const = 0; virtual unsigned corruptedFrameCount() const { return 0; } virtual unsigned audioDecodedByteCount() const = 0; virtual unsigned videoDecodedByteCount() const = 0; virtual void paint(HDC hdc, const wkeRect& r, unsigned char alpha, int mode) = 0; // Do a GPU-GPU textures copy if possible. virtual bool copyVideoTextureToPlatformTexture(void*, unsigned texture, unsigned internalFormat, unsigned type, bool premultiplyAlpha, bool flipY) { return false; } virtual /*WebAudioSourceProvider*/void* audioSourceProvider() { return nullptr; } // Returns whether keySystem is supported. If true, the result will be // reported by an event. virtual MediaKeyException generateKeyRequest(const char* keySystem, const unsigned char* initData, unsigned initDataLength) { return kWkeMediaKeyExceptionKeySystemNotSupported; } virtual MediaKeyException addKey(const char* keySystem, const unsigned char* key, unsigned keyLength, const unsigned char* initData, unsigned initDataLength, const char* sessionId) { return kWkeMediaKeyExceptionKeySystemNotSupported; } virtual MediaKeyException cancelKeyRequest(const char* keySystem, const char* sessionId) { return kWkeMediaKeyExceptionKeySystemNotSupported; } virtual void setContentDecryptionModule(/*WebContentDecryptionModule*/void* cdm, /*WebContentDecryptionModuleResult*/void* result) { } // Sets the poster image URL. virtual void setPoster(const char* poster) {} // Instruct WebMediaPlayer to enter/exit fullscreen. virtual void enterFullscreen() {} virtual void enabledAudioTracksChanged(const void* enabledTrackIds) {} // |selectedTrackId| is null if no track is selected. virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) {} virtual void setContentsToNativeWindowOffset(int x, int y) = 0; virtual bool handleMouseEvent(unsigned msg, unsigned wParam, unsigned lParam) = 0; virtual bool handleKeyboardEvent(unsigned msg, unsigned wParam, unsigned lParam) = 0; virtual void showMediaControls() = 0; virtual void hideMediaControls() = 0; }; class WkeMediaPlayerClient { public: enum VideoTrackKind { kWkeVideoTrackKindNone, kWkeVideoTrackKindAlternative, kWkeVideoTrackKindCaptions, kWkeVideoTrackKindMain, kWkeVideoTrackKindSign, kWkeVideoTrackKindSubtitles, kWkeVideoTrackKindCommentary }; enum AudioTrackKind { kWkeAudioTrackKindNone, kWkeAudioTrackKindAlternative, kWkeAudioTrackKindDescriptions, kWkeAudioTrackKindMain, kWkeAudioTrackKindMainDescriptions, kWkeAudioTrackKindTranslation, kWkeAudioTrackKindCommentary }; enum MediaKeyErrorCode { kWkeMediaKeyErrorCodeUnknown = 1, kWkeMediaKeyErrorCodeClient, kWkeMediaKeyErrorCodeService, kWkeMediaKeyErrorCodeOutput, kWkeMediaKeyErrorCodeHardwareChange, kWkeMediaKeyErrorCodeDomain }; enum EncryptedMediaInitDataType { kWkeEncryptedMediaInitDataUnknown, kWkeEncryptedMediaInitDataCenc, kWkeEncryptedMediaInitDataKeyids, kWkeEncryptedMediaInitDataWebm, }; // From path_to_url#idl-def-MediaKeySessionType enum EncryptedMediaSessionType { kWkeEncryptedMediaSessionUnknown, kWkeEncryptedMediaSessionTemporary, kWkeEncryptedMediaSessionPersistentReleaseMessage, }; virtual void keyAdded(const char* keySystem, const char* sessionId) = 0; virtual void keyError(const char* keySystem, const char* sessionId, MediaKeyErrorCode, unsigned short systemCode) = 0; virtual void keyMessage(const char* keySystem, const char* sessionId, const unsigned char* message, unsigned messageLength, const char* defaultURL) = 0; virtual void encrypted(EncryptedMediaInitDataType type, const unsigned char* initData, unsigned initDataLength) = 0; virtual void didBlockPlaybackWaitingForKey() = 0; virtual void didResumePlaybackBlockedForKey() = 0; virtual void networkStateChanged() = 0; virtual void readyStateChanged() = 0; virtual void timeChanged() = 0; virtual void repaint() = 0; virtual void durationChanged() = 0; virtual void sizeChanged() = 0; virtual void playbackStateChanged() = 0; virtual void setWebLayer(void*) = 0; virtual WkeMediaPlayer::TrackId addAudioTrack(const char* id, AudioTrackKind, const char* label, const char* language, bool enabled) { return 0; } virtual void removeAudioTrack(WkeMediaPlayer::TrackId) {}; virtual WkeMediaPlayer::TrackId addVideoTrack(const char* id, VideoTrackKind, const char* label, const char* language, bool selected) { return 0; } virtual void removeVideoTrack(WkeMediaPlayer::TrackId) {}; virtual void addTextTrack(void*) {}; virtual void removeTextTrack(void*) {}; virtual void mediaSourceOpened(void*) {}; virtual void requestSeek(double) {}; virtual void remoteRouteAvailabilityChanged(bool) {}; virtual void connectedToRemoteDevice() {}; virtual void disconnectedFromRemoteDevice() {}; virtual void didExitFullScreen() {}; // FFmpeg virtual DataSource* createDataSource(const char* url, int corsMode, wke::DataSource::DownloadingCB* downloadingCb) { return nullptr; }; protected: ~WkeMediaPlayerClient() {} }; } #endif // wkeMediaPlayer_h ```
Henny Vrienten (27 July 1948 – 25 April 2022) was a Dutch musician best known as the singer and bassist of the popular 1980s ska pop band Doe Maar. He also composed television and film scores. Biography Early days Vrienten began his career in the late 1960s as a member of the local outfit Les Cruches. In the early 1970s, he wrote songs for others and released his first single as Ruby Carmichael. In 1977, Vrienten released his debut solo album, Paul Santos, which he recorded with US producer Tom Salisbury. "Lift Me Up Higher" was extracted as a single. Also in the 1970s, he began working with singer-songwriter Boudewijn de Groot in the studio and on stage. While recording the 1975 album Waar ik woon en wie ik ben, Vrienten met keyboard player Ernst Jansz and drummer Johnny Lodewijks. The latter suggested they form a reggae band. The Rumbones, led by the vocals of Frenchman Cris Lester, toured from October to November 1977 and split up immediately after. Vrienten moved on to Sammie America's Gasphetti, recorded demos at his garage, and did another tour with De Groot. Doe Maar: 1980–84 Subsequently, Jansz asked Vrienten to join his band Doe Maar, but the songwriter declined, thinking that a Dutch-language group playing for fun would not survive. In 1980, however, he changed his mind. Vrienten joined Doe Maar in time for the recording of their second album, Skunk. He delivered three songs and co-designed the green/pink sleeve as the band's trademark colours. The record was belatedly released in March 1981. The lead single, "32 Jaar", became a hit. The follow-up, "Smoorverliefd", missed the Top 40, but with the 1982-released "Doris Day", Doe Maar broke through and become key figures of the New Dutch Wave explosion. Initially, they enjoyed their newfound popularity, but six months down the line, doubts started to creep in. In March 1983, by which time the fourth album, 4us, was released, the band temporarily retreated from publicity. This completely backfired, as Doe Maar-mania grew even bigger. In between tours of Belgium and the Netherlands Antilles, Vrienten recorded his first Dutch-language solo album and second overall, Geen Ballade, which he released in March 1984, a few weeks before Doe Maar played two farewell shows for the live broadcast. Instead of embarking on a solo tour, Vrienten decided to explore new territory: he wrote TV and film scores, including for the Dutch Sesame Street, and produced music for other artists. Solo career From 1986 to 1991, Vrienten played oldies like "Teddy Bear's Picknick" with Magnificent Seven, whose members included singer/advert composer and unofficial fifth Doe Maar member, . A new solo album was in the pipeline but held back by the release of a best-of album. The expected Doe Maar revival never happened, and in early 1992, Mijn Hart Slaapt Nooit, Vrienten's third studio record, saw the light of day. As with Geen Ballade, the album received minimal promotion. At the end of the year, all Doe Maar members reunited to support the 1960s outfit CCC Inc., which featured Ernst Jansz and Joost Belinfante, at their 25th-anniversary concert. In the mid-1990s, a new generation of Dutch-language acts emerged, and Henny ended up collaborating with rap group Osdorp Posse. Doe Maar: the reunion: 1999 In 1999, the four-piece rock band BLØF spent a whole tour playing Doe Maar tribute shows. Doe Maar members attended the show at the Amsterdam Paradiso and on 1 November 1999, they announced their reunion for one last album and a 25-date tour of the Netherlands and Belgium, consisting of eight club shows, a record-breaking sixteen-night residency at the Rotterdam Ahoy, and a stadium show at the Antwerp Sportpaleis. The album Klaar was released in April 2000; the band were finally acknowledged by the pop critics who had previously criticized them for singing in Dutch. Further work: 2000–2022 In 2008, Vrienten recorded an album with contemporaries Frank Boeijen and Henk Hofstede (frontman of The Nits), titled Aardige jongens. They promoted it with a theatre tour. In 2010, Vrienten appeared in Ali B op volle toeren, a programme in which young Dutch rappers exchange songs with established artists. He contributed "32 Jaar Later", a sequel to the song that gave Doe Maar their first top 40 hit in 1981. In 2014 and 2015, he released two solo albums and went on tour, accompanied by his son Xander (Jett Rebel's bass-player at the time) and the three-piece rock band My Baby. In 2016, Vrienten formed the supergroup with Golden Earring guitarist George Kooymans and Boudewijn de Groot. They released two albums in 2017 and toured until March 2020 with a setlist of collaborative songs and solo material. In 2019, Vrienten and his son appeared in a self-made documentary on bass players, a sequel to 2013's Gitaarjongens, which explored the joy of playing guitar. The two became the artists-in-residence on the talk show De Wereld Draait Door during its final season. A new solo album, Tussen de Regels, was released at the end of September. In 2021, the Doe Maar farewell tour was cancelled due to Vrienten's ill health. On 25 April 2022 Henny Vrienten died of lung cancer at the age of 73. Discography Solo Paul Santos (1977) Geen ballade (1984) Mijn hart slaapt nooit (1991) Nacht – De soundtrack (2006) Aardige jongens (2008) En toch... (2014) Alles is anders (2015) Tussen de regels (2019) Studio albums with Doe Maar (1981) (1982) (1983) (2000) Live albums with Doe Maar (1983) Het afscheidsconcert – Live in de Maaspoort 's-Hertogenbosch (1995) Hees van Ahoy (2000) (2012) Dub albums Doe de dub (dub version of the Doe Maar album Doris Day & andere stukken – 1982) Hot Dub (dub version of the album Bamboo reggae by Chris Hinze – 1984) Raymond Van Het Groenewoud Habba (1985) The Magnificent 7 The Best of the Worst (1990) Vreemde Kostgangers Vreemde Kostgangers (2017) Nachtwerk (2017) Soundtracks Film (1985) (1986) Spoorloos (1986) (1989) (1990) (1992) (1992) Part Time God (1993) Oeroeg (1993) Max (1994) Sur Place (1996) Left Luggage (1998) Madelief: Krassen In Het Tafelblad (1998) Abeltje (1998) Kruimeltje (1999) De Verlossing (2001) The Discovery of Heaven (2001) La balsa de piedra (2002) Pietje Bell (2002) Verder dan de maan (2003) Pietje Bell 2: de jacht op de Tsarenkroon (2003) Sonny Boy (2011) Tot altijd (2012) Everybody Happy (met Triggerfinger) (2016) Television Drie recht, één averecht (1988) De Vereenigde Algemeene (1992) Kongo (1997) Unit 13 (1997–98) Het Klokhuis (1999–) Sesamstraat (1999–) De geheime dienst (2000) Sinterklaasjournaal (2001–) Ernstige Delicten (2002–04) Petticoat (2016) Theater Ciske de Rat (musical) (2007–09) References External links 1948 births 2022 deaths Dutch male singer-songwriters Dutch singer-songwriters Dutch pop singers Dutch male guitarists Dutch film score composers Male film score composers Musicians from Tilburg People from Hilvarenbeek 21st-century Dutch male singers 21st-century Dutch singers 20th-century Dutch male singers
Ambiorix's revolt was an episode during the Gallic Wars between 54 and 53 BC in which the Eburones tribe, under its leader, Ambiorix, rebelled against the Roman Republic. Discontent among the subjugated Gauls prompted a major uprising amongst the Belgae against Julius Caesar in the winter of 54–53 BC, when the Eburones of north-eastern Gaul rose in rebellion under their leader Ambiorix. Fifteen Roman cohorts were wiped out at Atuatuca Tungrorum (modern Tongeren in Belgium) and a garrison commanded by Quintus Tullius Cicero narrowly survived after being relieved by Caesar in the nick of time. The rest of 53 BC was occupied with a punitive campaign against the Eburones and their allies, who were said to have been all but exterminated by the Romans. Prelude In 57 BC Julius Caesar conquered Gaul and also Belgica (modernday Northern France, Belgium and a southern section of The Netherlands to the Rhine River; and the north-western portion of North Rhine-Westphalia, Germany) In the battle of the Sabis Caesar defeated the Nervii, Viromandui and Atrebates. After this he turned against the Atuatuci, captured their stronghold, and sold the tribe into slavery. The Eburones, who until Caesar's destruction of the Atuatuci had been vassals of that Belgic tribe, were ruled by Ambiorix and Catuvolcus. In 54 BC there was a poor harvest, and Caesar, whose practice was to commandeer a part of the food supply from the local tribes, was forced to split his legions up among a larger number of tribes. To the Eburones he sent Quintus Titurius Sabinus and Lucius Aurunculeius Cotta with the command of a recently levied 14th Legion from north of the Po and a detachment of five cohorts, a total strength of 9,000 men. The Revolt of the Romans First Attack and deception According to Caesar, Ambiorix and his tribesmen were equal in number of combatants to Sabinus' and Cotta's men. They attacked and killed several Roman soldiers who were foraging for wood in the nearby vicinity. The survivors fled back to their camp, followed by Ambiorix and his men. When the Romans counterattacked, Ambiorix set up a parley with the Romans in which he admitted his debt to Caesar who had taken his side in certain disputes with other Gallic tribes but said that, despite the limited strength of the Eburones, he was compelled to take action by pressure from the other tribes who were determined to win their freedom from the yoke of Rome. He claimed that a huge force of Germans, greatly angered by Caesar’s successes against them and his defeat of Ariovistus, were about to cross the Rhine and offered to give the Romans safe passage to the fort of either of two nearby legions to better resist this Gallo-German force. Debate The Roman representatives, Quintus Junius and Gaius Arpineius, took the news back to the beleaguered fort. A council of war, attended by the leading officers and centurions, was formed. During this council, two opposing opinions took form. Speaking first, Cotta argued that they should not move without an order from Caesar. He pointed out that experience had shown them that Germans could be resisted from behind their fortifications, that they had plenty of supplies, were within easy reach of assistance from nearby legions and that they should not take at face value neither the news nor the advice of an enemy. Denying that he was motivated by fear, Quintus Titurius Sabinus said that he believed that Caesar was on his way to Italy, that the Germans were about to add to the number of the besieging Eburones and that it seemed that they were about to face the combined wrath of grudge-ridden Germans and Gauls—for surely the militarily weak Eburones would not dare to face a Roman legion otherwise. Moreover, he said it would be better to make for a nearby legion and face the trouble with their comrades than to risk famine through a prolonged siege. The officers told their commanders that whichever view prevailed was not as important as coming to a unanimous decision. Cotta was finally forced to give way and Sabinus prevailed. Roman defeat The Romans spent the night in disarray, putting together their belongings and preparing to march out of the fort once morning came. The enemy heard the hubbub in the Fort and prepared an ambush. When dawn broke, the Romans, in marching order (long columns of soldiers with each unit following the other), more heavily burdened than usual left the Fort. When the greater part of the column had entered a ravine, the Gauls assaulted them from either side and sought to harry the rearguard and prevent the vanguard from leaving the ravine. Caesar notes that Sabinus lost his mind, running from cohort to cohort and issuing ineffectual orders. Cotta, by contrast, kept his cool and did his duty as a commander, in action his duty as a soldier. Due to the length of the column, the commanders could not issue orders efficiently so they passed word along the line to the units to form into a square. The troops fought bravely though with fear and in clashes were successful. Thus, Ambiorix ordered his men to discharge their spears into the troops, to fall back if attacked by a group of Romans and chase back the Romans when they tried to fall into rank. During the engagement, Cotta was hit full in the face by a sling-shot. Then Sabinus sent word to Ambiorix to treat for surrender, a proposal which was acceded to. Cotta refused to come to terms and remained steadfast in his refusal to surrender, while Sabinus followed through with his plan to surrender. However, Ambiorix, after promising Sabinus his life and the safety of his troops, distracted him with a long speech, all the while slowly surrounding him and his men and slaughtering them. The Gauls then charged down en masse onto the waiting Romans where they killed Cotta, still fighting, and the great majority of the troops. The remainder fell back to the fort where, despairing of help, they killed each other. Only a few men slipped away to inform Titus Labienus of the disaster. Overall, one legion and 5 cohorts, around 7500 Romans, were killed in the battle. Gallic casualties are unknown. Aftermath After defeating Cotta and Sabinus, Ambiorix tried to raise a general revolt in Belgica. A Belgic attack on Quintus Tullius Cicero (younger brother of the orator Cicero), then stationed with a legion in the territory of the Nervii, led to a siege of the Roman camp during which Ambiorix unsuccessfully tried to repeat his earlier bluff. The attack ultimately failed due to the timely appearance of Caesar. Titus Labienus, the commander of the Fourth legion, which was stationed in the southern Ardennes, discovered that Indutiomarus and the Treveri were rebelling as well. The Treverian leader called for aid from the Senones and Germanic tribes east of the Rhine. The Fourth legion withstood the siege and Indutiomarus was killed after an unsuccessful attack. His relatives made their escape across the Rhine. Before targeting the Eburones themselves, Caesar first attacked Ambiorix's allies, forcing them to promise that they would not help the tribe who had destroyed Cotta and Sabinus. The Nervii were the first victims of the Roman retaliation. During that winter a force of four legions laid waste the fields, took a great many cattle and prisoners. The Menapii were then attacked by five legions to deprive Ambiorix of potential help. Five legions were sent because, according to Caesar, they, alone of all the tribes of Gaul, had never sent ambassadors to him to discuss terms of peace, and had ties of hospitality with Ambiorix. A renewed campaign of devastation finally forced them to submit, and Caesar placed his ally Commius of the Atrebates in control of them. After this Caesar built a bridge across the Rhine and campaigned in Germania to punish the German tribes who had aided the Treveri. When the Roman Senate heard what happened, Caesar swore to put down all the Belgic tribes. The Roman campaigns against the Belgae took a few years, but eventually the Belgae were no match against 50,000 trained Roman soldiers. The tribes were slaughtered or driven out and their fields burned. The Eburones ceased to exist following the campaign. The fate of the leaders of the revolt is different but neither was taken to walk in Caesar's triumphal parade. Cativolcus was now old, weak and unable to endure the hardships of flight. He solemnly cursed Ambiorix for instigating the conspiracy, and then committed suicide by poisoning himself with yew. Ambiorix and his men, however, managed to cross the Rhine and disappeared without a trace. References Cassius Dio xl. 7-11; Gaius Julius Caesar, The Gallic War, Loeb Edition, 2004. Delbrück, Hans. History of the Art of War Vol I. Adrien Hock, Etudes sur quelques campagnes de Jules César dans la Gaule-Belgique. Vue d'après nature, carte et plans. Namur, publisher: Ad. Wesmael-Charlier, 1897. Pages 75–97. available on line External links Commentarii de Bello Gallico (in Latin, English, German & Italian) The Last Battle and Death of Lucius Arunculeius Cotta (chapters 24-37) - Latin The Last Battle and Death of Lucius Arunculeius Cotta (chapters 24-37) - English Gallic Wars 54 BC 53 BC Ambushes in Europe
```javascript require.ensure(["./a"], function (require) { expect(require("./a")).toBe("a"); }); ```
Villa Krause is a city in the province of San Juan, Argentina in the Cuyo region. The city is located in the Tulúm Valley, west of the San Juan River, at 640 m above mean sea level and has a population of around 107,000 according to the . Populated places in San Juan Province, Argentina Cities in Argentina
Krantivira Sangolli Rayanna (Bengaluru Station), commonly known as KSR Bengaluru Station, Bengaluru City Railway Station or Bangalore City Railway Station or Majestic Railway station (station code: SBC), is the main railway station serving the city of Bengaluru, Karnataka, India. It is the busiest railway station in South Western Railway zone of Indian Railways, and is the only station classified under NSG1 category in the zone. It is located across the Kempegowda Bus Station. The station has 10 platforms and three entrances. History The establishment of the British cantonment in 1809 made Bangalore a crucial military hub in South India. Soon enough, a need arose to establish more transportation links between the new civil and military outpost with the colonial administrative headquarters in Madras. In the 1840s, proposals for these railway lines were debated in the British Parliament, a move supported by traders and shipping companies. In Bangalore, Sir Mark Cubbon pushed for the development of the railway link during his tenure as the Commissioner of Mysore and Coorg. He proposed a railroad project connecting Mysore and Madras through Bangalore and Calicut but the plan was stalled. The line was initially meant for military purposes -for transporting soldiers, grains and ammunition but was later made open to the public. Lewin Bentham Bowring took over as the commissioner of Mysore and the land for the railway project was donated by the Mysore government. The train that chugged from Cantonment was called 'Bangalore Mail', which is the oldest running train in Indian Railways. The year 1864 also saw other crucial developments in Bangalore. The railway link was a turning point in the history of the city as it encouraged immigration from the rest of the country. Trade witnessed a huge boost, and many potters from Madras also settled down in the Cantonment around the same time, leading to the establishment of Pottery Town. In 1944, the rail network was nationalised. On 14 April 1951, the three major networks administered by the erstwhile Madras and Southern Maratha Railway, the Southern Indian Railway and Mysore State Railway were joined to form Southern Railway. Due to historical reasons, the headquarters of the erstwhile Mysore State Railway was located in Mysore though Bangalore was the hub of operations. To improve administration and enhance monitoring, Bangalore Division was inaugurated on 27 July 1981. The metre-gauge lines bound to Hubli, Mysore were converted into broad gauge in the 1990s. In 2015 it was decided to rename the station; three stations in the city were using Bangaluru in their name. The station was renamed Krantiveera Sangolli Rayanna station in 2016. The station has numerous licensed food stalls, modernised digital lockers, facilities for the disabled, and child-friendly spaces which will also accommodate trafficked children. Platforms Platforms 1 to 7 connects to the Chennai and Salem railway lines. On platforms 8 to 10, service trains arrive via Yeshwantpur from Hubballi-Dharwad. Platforms 1 to 4 terminate at Bangalore. On platforms 5 to 10, service trains depart towards Mysuru. There are railway lines between Platforms 4 and 5 that are used as the railway yard. There are 5 railway lines passing from Bangalore City railway station – to Hyderabad via Guntakal, Chennai via Krishnarajapuram, Salem via Hosur, Mysuru, Hubballi-Dharwad via Tumkur, Birur. The Bangalore–Chennai railway line via Bangalore Cantonment, Bangarpet, is fully electrified and open for traffic. The Bangalore–Mysore line has also been doubled and electrified. Connections The railway station is served by City Railway Station metro station on the Namma Metro's Purple Line, which opened on 30 April 2016. Later that year, the Bangalore Metro Rail Corporation Limited (BMRCL) decided to construct a foot overbridge from the metro station until the boundary of the railway station, while the South Western Railway, would complete the rest of the work. The foot overbridge connecting platform 10 with the metro station was opened on 18 February 2019. The BMRC reported that monthly ridership at the metro station was 175,000 passengers per day prior to opening the bridge, and increased to 250,000 two months after its opening. The railway station is also served by Kempegowda Bus Station. Important trains The important trains originating and passing from Bangalore city station are KSR Bengaluru Mail, Kacheguda-Mysuru Express, Karnataka Express, Bangalore Miraj Rani Chennamma Express, Island Express, Chennai Shatabdi Express, Rajdhani Express, Lal Bagh Express, Chennai-Mysuru Vande Bharat Express, Brindavan Express and Wodeyar Express, Humsafar Express, Duronto Express. Aquatic Kingdom The station features a public aquarium called ′Aquatic Kingdom′ which has been functional since 1 July 2021. It includes a 12-foot-long tunnel aquarium, which is India's first. It is developed in collaboration with HNI Aquatic Kingdom. See also Mysore–Bangalore railway line References External links Railway stations in India opened in 1968 Railway stations in Bangalore Bangalore railway division Railway junction stations in Karnataka
Zastawki is a village in the administrative district of Gmina Chodel, within Opole Lubelskie County, Lublin Voivodeship, in eastern Poland. It lies approximately south-east of Opole Lubelskie and south-west of the regional capital Lublin. References Zastawki
Marcel-Ioan Boloș (born 1 April 1968) is a Romanian economist and politician who has served Minister of Finance since 2023. He previously served as Minister of European Projects and Investment from 2022 to 2023. Early life and education Boloș was born on 1 April 1968 in Poieni, Cluj in Romania. From 1982 to 1986, he studied at Huedin Industrial High School where he received a Baccalaureate diploma. From 1993 to 1997, he studied at the Bachelor Programme of Economic Sciences in University of Oradea where he obtained a bachelor's degree as an economist specialised in insurance finance. From 1992 to 1997, he studied at the Bachelor Programme of Electrical Engineering and Informatics as an Engineer specialised in electromechanics earning a bachelor's degree. From 1997 to 1999, he studied at the University of Oradea where he received a Diploma of Advanced Studies, specialising in the Management of Banking Financial Institutions. From 2000 to 2005, he studied at the West University of Timişoara at the Programme of Economic Sciences where he obtained a PhD in accounting. Career Teaching Boloș from 1999 to 2001 was a university assistant at the Programme of Economic Sciences at the University of Oradea. He worked as a university lecturer at the department of finance and accounting from 2001 to 2008. From 2008 to 2015, he was an associate professor at the same department in the university and in 2015 became a university professor at the same department. In June 2017, he obtained the qualification certificate in the field of finance, at the Bucharest Academy of Economic Studies. 1993-2019 Boloș became inspector in the Public Relations Service at Oradea City in 1993 and remained in the position until 1997. He became head of office in 1997 and served until 1998. He served as the chief accountant at the Real Estate Department from 1998 to 2000 and then economic director within the real estate administration at Oradea Local Council from 2005 to 2008. He became executive director at the Internationally Funded Projects Management Directorate at Oradea City Hall in 2008 serving until 2012. From 2012 to 2013, he served as State Secretary at the Ministry of Regional Development and Tourism and from 2013 until November 2015 he was the Director General, Coordinator of the POST Managing Authority and of the General Directorate for Management and Strategies. From November 2015 to January 2017, he was State Secretary at the Ministry of Transport. From January 2017 to November 2019, he was Director General at ADR Nord Vest. Ministerial career (2019-2023) Boloș served as Minister of European Projects and Investment from 4 November 2019 to 23 December 2020 in the First and Second Orban Cabinet. On 14 December 2021, he was appointed honorary advisor to Prime Minister Nicolae Ciucă in the field of Finance, budget and European Funds. On 28 January 2022, Boloș was appointed Minister of Research, Innovation and Digitisation. He was formally sworn in as Minister at the Cotroceni Presidential Palace before President Klaus Iohannis with Florin Cîțu, Marcel Ciolacu and Nicolae Ciucă amongst those in attendance. He was formally dismissed from the position after being appointed Minister of European Projects and Investment on 3 May. Finance Minister (2023-present) Boloș was appointed Minister of Finance on 15 June 2023 after obtaining a favourable vote of 30 votes for his appointment. Other activities International Monetary Fund (IMF), Ex-Officio Alternate Member of the Board of Governors (since 2023) References 1968 births Living people 21st-century Romanian economists 21st-century Romanian politicians Romanian Ministers of Finance National Liberal Party (Romania) politicians Academic staff of the University of Oradea University of Oradea alumni West University of Timișoara alumni People from Cluj County
Dardanus megistos, the white-spotted hermit crab or spotted hermit crab, is a species of hermit crab belonging to the family Diogenidae. Etymology The genus name Dardanus refers to the son of Zeus and Electra in Greek mythology, while the species name megistos is the superlative of the Greek word mega, therefore it means the largest. Distribution This species is present in the Indo-Pacific region from East Africa to the South China Sea, Australia and east to Hawaii. Habitat These tropical reef-associated crabs occur in coral reef, lagoons, rocky platforms, sand and seagrass beds, from littoral and subtidal zones to deep waters, at depths up to 50 m. Description Dardanus megistos can reach a body length of about . These large crabs have a bright red body with small white eyespots surrounded by black. Their bodies are covered with long erect coarse hairs of a dark red color. They have a pair of long white primary antennae or antennules, a pair of secondary antennae, stalked green brown eyes and three pairs of mouth appendages. The stalks of the eyes are reddish with a basal white spot. The soft, asymmetrical abdomen is spiral-shaped, useful in keeping in the shell, with a five-piece tail (telson and uropods). Like all decapod crustaceans, they have ten legs. The first pair of legs carries the pincers ( chelipeds). The left plier is bigger than the right one. Biology The white-spotted hermit crabs are gonochorics, the eggs are carried on the female's abdomen. They also are opportunistic omnivore, mainly feeding on small invertebrates (worms, molluscs, etc.) and they are also reported to feed on holothurians. Commonly these crabs perform a precopulatory courtship ritual. Usually the sperm transfer is indirect. They may live up to 30 years. These crustaceans usually inhabit a large shell of a gastropod, consequently only the cephalothorax and the first three pairs of legs are visible. Gallery Bibliography Barnes, D.K.A. and R.J. Arnold 2001 Ecology of subtropical hermit crabs in S.W. Madagascar: cluster structure and function. Mar. Biol. 139:463-474. Fize, A. & Serène, R. 1955. Les Pagures du Vietnam. Vietnam : Institut Océanographique de Nhatrang 228 pp., 6 pls. Liu, J.Y. [Ruiyu] (ed.). (2008). Checklist of marine biota of China seas. China Science Press. 1267 pp. McLaughlin, P. A.; Komai, T.; Lemaitre, R.; Rahayu, D.L. (2010). Annotated checklist of anomuran decapod crustaceans of the world (exclusive of the Kiwaoidea and families Chirostylidae and Galatheidae of the Galatheoidea. Part I – Lithodoidea, Lomisoidea and Paguroidea. The Raffles Bulletin of Zoology. Suppl. 23: 5-107. Milne Edwards, H. 1848. Sur quelques nouvelles espèces du genre Pagure. Annales des Sciences Naturelles, Paris 10: 59-64 Olivier, A.G. 1811. Pagure. pp. 636-649 in Olivier, A.G. (ed.). Encyclopédie Méthodique. Histoire Naturelle. Insectes. Paris : H. Agasse Vol. 8 772 pp. Reay, P.J. & J. Haig (1990). Coastal hermit crabs (Decapoda: Anomura) from Kenya, with a review and key to East African species. Bulletin of Marine Science 46(3): 578-589 Sakai, K. 1999. J. F. W. Herbst-Collection of decapod Crustacea of the Berlin Zoological Museum, with remarks on certain species. Naturalists, Tokushima Biological Laboratory, Shikoku University 6: 1-45 pls 1-21 Tudge, C.C. 1995. Hermit Crabs of the Great Barrier Reef and Coastal Queensland. Brisbane : University of Queensland and Backhuys Publishers 40 pp. References Hermit crabs Crustaceans described in 1804 Articles containing video clips
```go // Use of this source code is governed by a BSD // license that can be found in the LICENSE file. package libgit import ( "context" "io/ioutil" "os" "os/exec" "path/filepath" "testing" "github.com/stretchr/testify/require" billy "gopkg.in/src-d/go-billy.v4" "gopkg.in/src-d/go-billy.v4/osfs" ) // Helper functions duplicated from kbfsgit for now, to avoid pulling // them into the main build. TODO: a new package for git testing // code? func gitExec(t *testing.T, gitDir, workTree string, command ...string) { cmd := exec.Command("git", append([]string{"--git-dir", gitDir, "--work-tree", workTree}, command...)...) err := cmd.Run() require.NoError(t, err) } func makeLocalRepoWithOneFile(t *testing.T, gitDir, filename, contents, branch string) { t.Logf("Make a new repo in %s with one file", gitDir) err := ioutil.WriteFile( filepath.Join(gitDir, filename), []byte(contents), 0600) require.NoError(t, err) dotgit := filepath.Join(gitDir, ".git") gitExec(t, dotgit, gitDir, "init") if branch != "" { gitExec(t, dotgit, gitDir, "checkout", "-b", branch) } gitExec(t, dotgit, gitDir, "add", filename) gitExec(t, dotgit, gitDir, "-c", "user.name=Foo", "-c", "user.email=foo@foo.com", "commit", "-a", "-m", "foo") } func addOneFileToRepo(t *testing.T, gitDir, filename, contents string) { t.Logf("Add a new file to %s", gitDir) err := ioutil.WriteFile( filepath.Join(gitDir, filename), []byte(contents), 0600) require.NoError(t, err) dotgit := filepath.Join(gitDir, ".git") gitExec(t, dotgit, gitDir, "add", filename) gitExec(t, dotgit, gitDir, "-c", "user.name=Foo", "-c", "user.email=foo@foo.com", "commit", "-a", "-m", "foo") } func testCheckFile(t *testing.T, fs billy.Filesystem, name, expectedData string) { f, err := fs.Open(name) require.NoError(t, err) defer f.Close() data, err := ioutil.ReadAll(f) require.NoError(t, err) require.Equal(t, expectedData, string(data)) } func TestWorktreeReset(t *testing.T) { git1, err := ioutil.TempDir(os.TempDir(), "kbfsgittest") require.NoError(t, err) defer os.RemoveAll(git1) // Test our clone functions on regular file system paths, since // cloning a repo into KBFS here isn't simple. makeLocalRepoWithOneFile(t, git1, "foo", "hello", "") git2, err := ioutil.TempDir(os.TempDir(), "kbfsgittest") require.NoError(t, err) defer os.RemoveAll(git2) dotgit1 := filepath.Join(git1, ".git") dotgit1FS := osfs.New(dotgit1) git2FS := osfs.New(git2) ctx := context.Background() err = Reset(ctx, dotgit1FS, git2FS, "refs/heads/master") require.NoError(t, err) testCheckFile(t, git2FS, "foo", "hello") // No-op. err = Reset(ctx, dotgit1FS, git2FS, "refs/heads/master") require.NoError(t, err) testCheckFile(t, git2FS, "foo", "hello") // Try a second file. addOneFileToRepo(t, git1, "foo2", "hello2") err = Reset(ctx, dotgit1FS, git2FS, "refs/heads/master") require.NoError(t, err) testCheckFile(t, git2FS, "foo", "hello") testCheckFile(t, git2FS, "foo2", "hello2") // And two more over two commits. addOneFileToRepo(t, git1, "foo3", "hello3") addOneFileToRepo(t, git1, "foo4", "hello4") err = Reset(ctx, dotgit1FS, git2FS, "refs/heads/master") require.NoError(t, err) testCheckFile(t, git2FS, "foo", "hello") testCheckFile(t, git2FS, "foo2", "hello2") testCheckFile(t, git2FS, "foo3", "hello3") testCheckFile(t, git2FS, "foo4", "hello4") // Now delete one. gitExec(t, dotgit1, git1, "rm", "-f", "foo2") gitExec(t, dotgit1, git1, "-c", "user.name=Foo", "-c", "user.email=foo@foo.com", "commit", "-a", "-m", "foo") err = Reset(ctx, dotgit1FS, git2FS, "refs/heads/master") require.NoError(t, err) testCheckFile(t, git2FS, "foo", "hello") testCheckFile(t, git2FS, "foo3", "hello3") testCheckFile(t, git2FS, "foo4", "hello4") _, err = git2FS.Stat("foo2") require.True(t, os.IsNotExist(err)) } func TestWorktreeResetFromBranch(t *testing.T) { git1, err := ioutil.TempDir(os.TempDir(), "kbfsgittest") require.NoError(t, err) defer os.RemoveAll(git1) // Test our clone functions on regular file system paths, since // cloning a repo into KBFS here isn't simple. makeLocalRepoWithOneFile(t, git1, "foo", "hello", "") dotgit1 := filepath.Join(git1, ".git") gitExec(t, dotgit1, git1, "checkout", "-b", "test") addOneFileToRepo(t, git1, "foo2", "hello2") // Switch back to master so regular HEAD can't be used. gitExec(t, dotgit1, git1, "checkout", "master") git2, err := ioutil.TempDir(os.TempDir(), "kbfsgittest") require.NoError(t, err) defer os.RemoveAll(git2) dotgit1FS := osfs.New(dotgit1) git2FS := osfs.New(git2) ctx := context.Background() err = Reset(ctx, dotgit1FS, git2FS, "refs/heads/test") require.NoError(t, err) testCheckFile(t, git2FS, "foo", "hello") testCheckFile(t, git2FS, "foo2", "hello2") } ```
Karvandan (, also Romanized as Karvandān and Karūnān; also known as Karonān) is a village in Howmeh-ye Dehgolan Rural District of the Central District of Dehgolan County, Kurdistan province, Iran. The village is populated by Kurds. At the 2006 National Census, its population was 1,428 in 325 households, when it was in the former Yeylan District of Ghorveh County. The following census in 2011 counted 1,599 people in 444 households, by which time the district had separated from the county in the establishment of Dehgolan County. The latest census in 2016 showed a population of 1,546 people in 490 households. It was the largest village in its rural district. References Dehgolan County Populated places in Kurdistan Province Populated places in Dehgolan County Kurdish settlements in Kurdistan Province
The Border Security Agency (BSA), also known as AKSEM (, Jawi: اڬيسي كاولن سمڤادن مليسيا) was a Malaysian government agency that guard the country’s entry and exit points from illegal activities such as smuggling, illegal migration and human trafficking. History Established in 2015, the agency manned by some 10,000 officials from the Malaysian Armed Forces, Royal Malaysia Police, General Operations Force and the Smuggling Prevention Unit (UPP). The Border Security Agency, which was tasked with protecting the borders of Malaysia, was officially dissolved in the latter part of 2022. Following its dissolution, the responsibility of safeguarding the borders has now been taken over by two other prominent security agencies in Malaysia - the Royal Malaysia Police and the Malaysian Armed Forces. See also List of national border guard agencies References Federal ministries, departments and agencies of Malaysia Law enforcement in Malaysia 2015 establishments in Malaysia Government agencies established in 2015
The 21 cm Granatwerfer 69 was a mortar used by Germany during World War II. This weapon may also be known as the GR 19 and B 19 or by its nickname "Elefant". The prototype was built by Skoda as the 22 cm sGrW B 14, but was redesigned to 21 cm at OKH's request to use existing ammunition. In firing position, the wheels rested in shoes that rested on a semicircular rail track. The baseplate was attached to the mount by a ball joint to allow for traverse without reseating the baseplate. Elevation was obtained by rack and pinion on the upright legs. The firing mechanism was built into the breech ring and was of the continuous pull type. It was designed to be towed as a complete unit, the baseplate riding above the tube. It fired a light bomb of and a heavy bomb of . Notes Sources Gander, Terry and Chamberlain, Peter. Weapons of the Third Reich: An Encyclopedic Survey of All Small Arms, Artillery and Special Weapons of the German Land Forces 1939-1945. New York: Doubleday, 1979 World War II mortars of Germany 210 mm artillery Weapons and ammunition introduced in 1944
```javascript export default class WebUnsupportedError extends Error { constructor() { super("`expo-dev-launcher` isn't supported on Expo Web."); } } //# sourceMappingURL=WebUnsupportedError.js.map ```
```javascript import ErrorModal from './error_modal' document.addEventListener('turbo:frame-missing', async (e) => { e.preventDefault() const response = e.detail.response const title = `${response.status} (${response.statusText})` response.text().then(content => ErrorModal.show({ title, content })) }) ```
Creobroter medanus is a species of praying mantis in the family Hymenopodidae. See also List of mantis genera and species References M Mantodea of Asia Insects described in 1915
The World Log Lift Championships (sometimes referred to as World Log Lift Challenge) is an annual competition featuring strength athletes from all over the world, competing exclusively in the log clean and press. Created initially as part of the Strongman Champions League, it has since been part of Giants Live and the championship has been present in both series, Giants Live running one version of the championship and the World Log Lift Federation taking over the Strongman Champions League's variant of the championship. History In its inaugural year, the Strongman Champions League introduced the World Log Lift Championships. The event had been a staple of strongman competitions since the early 1980s. Beginning with the 1980 World's Strongest Man contest, where Bill Kazmaier hoisted to win the event and set a world record. Over eight years Kazmaier increased the record to . Jamie Reeves, winner of the 1989 World's Strongest Man contest, managed in 1989, and at the 1992 World Mighty Man contest in Johannesburg, South Africa.. It was ten years before 2001 World's Strongest Man winner Svend Karlsen set a new record of at the Strongman Super Series event in Sweden. In 2003, Hugo Girard set a new record at the Strongman Super Series event in Canada with . In 2004, Žydrūnas Savickas set a new record of , and Raimunds Bergmanis brought the record up to at the Strongman Super Series event in Moscow. Savickas began his long reign over the log lift world record starting in 2005, bringing it up to in Hungary, and then again at the 2005 IFSA European Championships in Riga, Latvia with . Savickas set another new record in 2006, bringing it up to . In 2008 Savickas broke the record twice more, with marks of kg and . Savickas set yet another world record of at the 2009 World Log Lift Championship. Savickas had a banner year of world records in 2012. He set records of at the 2011 SCL Finals in Sarajevo, Bosnia on 7 February 2012, 216 kg at the 2012 Europe's Strongest Man contest in Leeds, England on 23 June, and yet another world record of at the SCL Holland event in Zevenaar, Netherlands on 30 June 2012. Savickas' final world record of 2012 was , set during the finals of the 2012 World's Strongest Man contest which he eventually won, marking his third WSM title, and his tenth consecutive log lift world record. In 2013, Savickas set another world record at the 2013 Europe's Strongest Man in Leeds, England with a lift of . Savickas' last world record was , set in 2015 in Brazil, marking his sixteenth break of the world record. The current world record is set by Cheick "Iron Biby" Sanou at the 2023 World Log Lift Championship, part of the Giants Live World Tour Finals in Glasgow, Scotland. Champions Multiple time champions Heaviest Lifts In History At the Championships Continental records 1 Cheick Sanou, who is a Canadian citizen, has the heaviest lift for this region at , but is not listed as he has declared for Burkina Faso. Individual Results NOTE: When competitors finish on the same weight, the results are sorted by the competitors' body weights with the lightest being given a higher position. 2008 Zydrunas Savickas entered the 2008 Log Lift World Championships as the clear favorite, and intended to set a new record with . Savickas' competitors included Mikhail Koklyaev, Ervin Katona, Sebastian Wenta, Oleksandr Lashyn, Tobias Ide, Agris Kazelniks, Oleksandr Pekanaov, Krzysztof Radzikowski and Saulius Brusokas. The competition, held in Lithuania, saw each lift judged by three officials similar to Powerlifting and Olympic Weightlifting. The referees were Strongman Champions League founders Ilkka Kinnunen, Marcel Mostert and Latvian weighlifter Viktors Ščerbatihs, who had won the bronze medal in the + superheavyweight class at the recent Beijing Olympics. One of the strongest contenders, Oleksandr Pekanov, who had a personal best of missed his opener of three times. However, a number of other athletes came away with personal records, and two National Records were set. Zydrunas Savickas missed his world record attempt of , but won the championships with his lift of . Results Records Source of results: 2009 The championships took place in Kaunas, Lithuania on 21 November 2009. Results Records Source of results: 2010 The Log Lift Championships were not held in 2010, and was moved up to February 2011 to kick off the 2011 season of SCL. 2011 The 2011 World Log Lift Championships were held in Siemens Arena in Vilnius, Lithuania on 12 February 2011 to kick off the 2011 SCL season. Key competitors were reigning champion Zydrunas Savickas, Vidas Blekaitis and Vytautas Lalas who finished in the top 3 places respectively, with Zavickas winning his 3rd straight log lift title. There were 12 athletes in total, 3 athletes failed their opening weight on all 3 attempts. The event was broadcast live on Eurosport. Results Records 2012 The 2012 World Log Lift Championships were held in Siemens Arena in Vilnius, Lithuania on Sunday 7 October 2012. Results Records 2013 The 2013 World Log Lift Championships were held in Siemens Arena in Vilnius, Lithuania on Saturday 19 October 2013. Savickas set a new world record with a lift of . Results Records 2015 The 2015 World Log Lift Championships were held at the Keepmoat Stadium in Doncaster, England on 14 February 2015. Savickas attempted to set a new world record with a lift of but narrowly failed. Results Records 2016 The 2016 World Log Lift Championships were held at the SCL Lithuania event in Vilnius. Results Records 2017 The 2017 World Log Lift Championships were held at the SCL Lithuania event in Vilnius. Results 2018 The 2018 World Log Lift Championships were held at the First Direct Arena in Leeds, England, as the opening event for Europe's Strongest Man. Two strongmen attempted to set a new world record with a lift of | but both failed. Records 2019 In 2019, there were two World Log Lift Championships, the first of which was held at the First Direct Arena in Leeds, England, again, as the opening event for Europe's Strongest Man. Cheick "Iron Biby" Sanou attempted to set a new world record with a lift of but narrowly failed. The second championship was run by the World Log Lift Federation in Lithuania Results (Giants Live) Records (Giants Live) Results (World Log Lift Federation) Records (World Log Lift Federation) 2021 The 2021 World Log Lift Championships were held at the First Direct Arena in Leeds, England, as the opening event for Europe's Strongest Man. Results 2022 The 2022 World Log Lift Championships were held at the First Direct Arena in Leeds, England, as the opening event for Europe's Strongest Man. Results 2023 The 2023 World Log Lift Championships were held at the OVO Hydro in Glasgow, Scotland, as the opening event for the Giants Live World Tour Finals. Results Records See also Europe's Strongest Man Giants Live Strongman Champions League Žydrūnas Savickas The World Deadlift Championships References External links Official Site of Strongman Champions League Official Site of Giants Live Strongmen competitions
Wild Blood (Sanguepazzo) is an Italian film directed in 2008 by Marco Tullio Giordana. Plot This film tells the story of two renowned actors of the Fascist cinema, Luisa Ferida and Osvaldo Valenti, who were supporters of the Italian Social Republic. Accused of collaboration and torture, they were shot by the Partisans on 30 April 1945, after the country was liberated. The movie was included in the "uncategorized" group at Cannes Film Festival in 2008. Cast Luca Zingaretti as Osvaldo Valenti Monica Bellucci as Luisa Ferida Alessio Boni as Golfiero Goffrinni/Taylor Maurizio Donadoni as Vero Marozin Alessandro Di Natale as Dalmazio Luigi Diberti as Cardi Tresy Taddei as Irene Mattia Sbragia as the film director Luigi Lo Cascio as the partisan Sonia Bergamasco as the prisoner References External links 2008 films 2000s Italian-language films 2008 biographical drama films Italian biographical drama films Films directed by Marco Tullio Giordana 2008 drama films Films about Fascist Italy 2000s Italian films
```xml /* * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ // TypeScript Version: 4.1 /** * Evaluates the moment-generating function (MGF) of a Poisson distribution. * * @param t - input value * @returns evaluated MGF */ type Unary = ( t: number ) => number; /** * Interface for the moment-generating function (MGF) of a Poisson distribution. */ interface MGF { /** * Evaluates the moment-generating function (MGF) for a Poisson distribution with mean parameter `lambda` at a value `t`. * * ## Notes * * - If provided a negative value for `lambda`, the function returns `NaN`. * * @param t - input value * @param lambda - mean parameter * @returns evaluated MGF * * @example * var y = mgf( 1.0, 1.5 ); * // returns ~13.163 * * @example * var y = mgf( 0.5, 0.5 ); * // returns ~1.383 * * @example * var y = mgf( NaN, 0.5 ); * // returns NaN * * @example * var y = mgf( 0.0, NaN ); * // returns NaN * * @example * var y = mgf( -2.0, -1.0 ); * // returns NaN */ ( t: number, lambda: number ): number; /** * Returns a function for evaluating the moment-generating function (MGF) of a Poisson distribution with mean parameter `lambda`. * * @param lambda - mean parameter * @returns MGF * * @example * var mymgf = mgf.factory( 2.0 ); * var y = mymgf( 0.1 ); * // returns ~1.234 */ factory( lambda: number ): Unary; } /** * Poisson distribution moment-generating function (MGF). * * @param t - input value * @param lambda - mean parameter * @returns evaluated MGF * * @example * var v = mgf( 0.5, 0.5 ); * // returns ~1.383 * * var mymgf = mgf.factory( 2.0 ); * y = mymgf( 0.1 ); * // returns ~1.234 */ declare var mgf: MGF; // EXPORTS // export = mgf; ```
Nocardioides kongjuensis is a Gram-positive bacterium from the genus Nocardioides which has been isolated from soil from Gongju, South Korea. Nocardioides kongjuensis has the ability to degrade N-acyl homoserine lactone. References Further reading External links Type strain of Nocardioides kongjuensis at BacDive - the Bacterial Diversity Metadatabase kongjuensis Bacteria described in 2006
Sultana Point is a headland in the Australian state of South Australia located near the south east tip of Yorke Peninsula in the gazetted locality of Sultana Point about south-southeast of the town of Edithburgh. The waters to its immediate east contain the shoal system known as the Troubridge Shoals. It is one of the natural features named after the Sultana, a ship which was wrecked on the Troubridge Shoals on 28 September 1849. The waters adjoining its shores are located within the boundaries of the Lower Yorke Peninsula Marine Park. See also Sultana (disambiguation) References External links Beachsafe webpage for Sultana Point Headlands of South Australia Yorke Peninsula Gulf St Vincent
RAF Shinfield Park was a Royal Air Force administrative site in the south of Reading, Berkshire. It served as the Met Office residential training college from 1971 until 2002. The European Centre for Medium-Range Weather Forecasts was built on part of the site in 1978. History The site is adjacent to the west side of the A327 road in the south of the Reading area, near the current roundabout with the B3270. Adjacent to the south is the former Shire Hall of Berkshire County Council, and the M4. Adjacent to the north is the independent Crosfields School, built on a former part of the RAF site. To the west is Whitley Wood. Although it was built as a part of Berkshire, the current site is in the civil parish of Shinfield, in the Borough of Wokingham. The RAF station was built on the Shinfield Lodge Estate. The site had been owned by Ebenezer Maitland in the 1700s. RAF Flying Training Command For many years it was the headquarters of RAF Flying Training Command (HQFTC) from 27 May 1940 until 1 June 1968. From 1940 until 1945, it was also the headquarters of RAF Technical Training Command. RAF Training Command From 1 June 1968 to 13 June 1977 it was the headquarters of RAF Training Command. In June 1977 RAF Training Command became part of RAF Support Command, situated at RAF Brampton in Cambridgeshire. Meteorological Office College It became the Meteorological Office College in October 1971, who had moved from Stanmore in north-west London. The Met Office College, when under Peter Ewins, left in 2002, briefly staying at South Devon College, before moving to Exeter in 2004. The Met Office College trained not just British meteorologists, but TV weather presenters across Europe. TV weather presenters would receive an intensive 18-week course in meteorology. ECMWF The European Centre for Medium-Range Weather Forecasts was established next to the Met Office College in 1978. It is known for its Integrated Forecast System. It has around 100 staff. The site had been agreed to be built following a meeting of 18 countries in Brussels in March 1973. It looked at forecasts from four to ten days hence. Recent development Most of the site has been turned into housing. Shinfield Lodge has Grade II listing. See also Shinfield Grange Estate, 478-acre site on the other side of the M4, formerly owned by the University of Reading from 1949, and owned previous to that by Sir Eric Palmer of Huntley & Palmers References External links RAF Shinfield Park Met Office College history 2010 planning application to Wokingham Borough Council Education in the Borough of Wokingham Grade II listed buildings in Berkshire Met Office Meteorology and climate education Military installations established in 1940 Military installations closed in 1977 Organisations based in Reading, Berkshire Royal Air Force stations in Berkshire 1940 establishments in England 1977 disestablishments in England
Dragon Stadium may refer to: Football (soccer) Estádio do Dragão, in Porto, Portugal American football Dragon Stadium, Southlake, Texas, USA Dragon Stadium, Round Rock ISD
Prince Yakov Lobanov-Rostovsky (1660 – 23 May 1732) was a Rurikid prince of the Lobanov-Rostovsky family and Russian statesman and civil servant. 1660 births 1732 deaths Yakov
```javascript import { mount, createLocalVue } from "@vue/test-utils"; import FieldImage from "src/fields/optional/fieldImage.vue"; const localVue = createLocalVue(); let wrapper; function createField2(data, methods) { const _wrapper = mount(FieldImage, { localVue, propsData: data, methods: methods }); wrapper = _wrapper; return _wrapper; } describe("fieldImage.vue", () => { describe("check template without preview", () => { let schema = { type: "image", label: "Avatar", model: "avatar", autocomplete: "off", disabled: false, placeholder: "", readonly: false, inputName: "" }; let model = { avatar: "path_to_url" }; let input, fileInput; before(() => { createField2({ schema, model, disabled: false }); input = wrapper.find("input[type=text]"); }); it("should contain an input text element", () => { expect(wrapper.exists()).to.be.true; expect(input.exists()).to.be.true; expect(input.attributes().type).to.be.equal("text"); expect(input.classes()).to.include("form-control"); expect(input.classes()).to.include("link"); }); it("should contain a file input element", () => { fileInput = wrapper.find("input[type=file]"); expect(fileInput.exists()).to.be.true; expect(fileInput.classes()).to.include("form-control"); expect(fileInput.classes()).to.include("file"); }); it("should not visible the preview div", () => { let preview = wrapper.find(".preview"); expect(preview.element.style.display).to.be.equal("block"); }); it("should contain the value", () => { expect(input.element.value).to.be.equal(model.avatar); }); describe("check optional attribute on text input", () => { let attributes = ["autocomplete", "disabled", "placeholder", "readonly", "inputName"]; attributes.forEach(name => { it("should set " + name, () => { checkAttribute(name, input, schema); }); }); }); describe("check optional attribute on file input", () => { let attributes = ["disabled", "inputName"]; attributes.forEach(name => { it("should set " + name, () => { checkAttribute(name, fileInput, schema); }); }); }); it("input value should be the model value after changed", () => { model.avatar = "path_to_url"; wrapper.update(); expect(input.element.value).to.be.equal("path_to_url"); }); it("model value should be the input value if changed", () => { input.element.value = "path_to_url"; input.trigger("input"); wrapper.update(); expect(model.avatar).to.be.equal("path_to_url"); }); it("should not contain a file input element if browse is false", () => { wrapper.vm.schema.browse = false; wrapper.update(); let fileInput = wrapper.find("input[type=file]"); expect(fileInput.exists()).to.be.false; }); it("should not visible the preview div", () => { wrapper.vm.schema.preview = false; wrapper.update(); let preview = wrapper.find(".preview"); expect(preview.element.style.display).to.be.equal("none"); }); it("should not show the link input element if hideInput is true", () => { wrapper.vm.schema.hideInput = true; wrapper.update(); let fileInput = wrapper.find("input[type=text]"); expect(fileInput.element.style.display).to.be.equal("none"); wrapper.vm.schema.hideInput = false; wrapper.update(); }); it("should not show base64 data in input field", () => { model.avatar = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQ"; wrapper.update(); expect(input.element.value).to.be.equal("<inline base64 image>"); }); it("should clear input if press remove icon", () => { wrapper.vm.schema.preview = true; wrapper.update(); let remove = wrapper.find(".remove"); expect(input.element.value).to.be.not.equal(""); remove.trigger("click"); wrapper.update(); expect(input.element.value).to.be.equal(""); }); it.skip("should convert image to base64 if file input changed", () => { console.log(new FileReader()); // Stub the browser FileReader let FR = window.FileReader; global.FileReader = window.FileReader; window.FileReader = sinon.stub().returns({ readAsDataURL() { this.onload({ target: { result: "base64 image data" } }); } }); wrapper.vm.fileChanged({ target: { files: [ { name: "test.jpg", length: 55431 } ] } }); // wrapper.update(); expect(input.element.value).to.be.equal("base64 image data"); expect(model.avatar).to.be.equal("base64 image data"); window.FileReader = FR; }); }); }); ```
Whiteleaf is a hamlet in the civil parish of Princes Risborough and the ecclesiastical parish of Monks Risborough in Buckinghamshire, England. It is located 7 miles south of the county town of Aylesbury and 8 miles north of High Wycombe. It lies halfway up the northern scarp of the Chilterns, about half a mile from the parish church of Monks Risborough. The hamlet's name is first found in the form White Cliff in the eighteenth century, referring to the white chalk cliff above the road to the east of the hamlet, which has the Whiteleaf Cross cut into the chalk on the side of Whiteleaf Hill above it, making an important landmark for miles around. In addition to the cross, there is a neolithic barrow on Whiteleaf Hill. Whiteleaf is home to Monks Risborough Cricket Club and the 9-hole Whiteleaf Golf Club, both of which lie slightly south-east of the main road through the village, which follows the path of the Upper Icknield Way. The cricket ground has a significant slope and was tried by the BBC to see if it would be suitable for filming the cricket scene in the production of A. G. Macdonnell's England, Their England. However, it was not found to be sloping enough. The cricket club celebrated its centenary in 1993 and a book covering its history was published. The cricket club pavilion was largely destroyed by fire in 2010. The village also has a public house, the Red Lion. Children's writer Kevin Crossley-Holland grew up in Crosskeys, Westfields (a cottage now called Woodside). His father was the composer Peter Crossley-Holland. References Hamlets in Buckinghamshire Chiltern Hills
Mimagnia quadrifasciata is a species of beetle in the family Cerambycidae, and the only species in the genus Mimagnia. It was described by Fauvel in 1906. References Acanthocinini Beetles described in 1906 Monotypic beetle genera
Pestovsky (masculine), Pestovskaya (feminine), or Pestovskoye (neuter) may refer to: Pestovsky District, a district of Novgorod Oblast, Russia Pestovskoye Urban Settlement, a municipal formation which the town of district significance of Pestovo in Pestovsky District of Novgorod Oblast, Russia is incorporated as Pestovsky (inhabited locality) (Pestovskaya, Pestovskoye), several rural localities in Russia
WTBU (95.3 FM, "The Bull") is a radio station licensed to York Center, Maine, United States. Established in 1987, WTBU is owned by iHeartMedia and serves York County, Maine, and the New Hampshire Seacoast. The station broadcasts a country music format. History The station went on the air in June 1987 as WQMI with a middle of the road format. In 1989, it became WCQL-FM as "Cool 95.3" with an oldies format. That was dropped in August 1996 in favor of a contemporary hit radio format, WXHT ("Heat 95.3"), which placed a heavy emphasis on 1980s new wave hits. That lasted until May 1998, when it went modern rock as "95-3 The Heat" via Radio One Networks. In March 1999, the station changed to a country format, becoming WUBB ("B95.3"). However, WUBB was faced with strong competition from country leader WOKQ, which also had a much stronger signal. WUBB also had a limited local presence when compared to WOKQ. As a result, WUBB never became a big ratings success. On January 10, 2008, the station dropped its country format and began simulcasting sister station WQSO; WUBB's website stated "Coming Soon! Sports Radio" with a link to MSN's Fox Sports page, implying that the new format would be Fox Sports Radio. However, this never happened, and this was thought to be put on the website only to throw people off. The following day, the stunt shifted to TV theme songs; in between the songs, there was a message saying "We are building a new station just for you," promoting a new format that would be launched at 6 a.m. on the 14th. At the announced time, the station relaunched as "Kiss 95.3", initially simulcasting WXKS-FM from Boston. Soon after, the call letters changed to WSKX. By August of the following year, WSKX ended the simulcast and ran its own CHR format. On October 4, 2012, sister station WERZ adopted 95.3's old format, and the station began stunting with sounds of ocean waves and occasional bells, along with voiceover Chad Erickson (as well as its website) redirecting Kiss listeners to WERZ, and advising them to tune in the following Tuesday, October 9, at Noon. At that time, the station flipped to adult hits as "95.3 The Coast", launching with Journey's "Don't Stop Believin'". In November 2013, WSKX flipped to Christmas music for the holiday season, letting listeners choose online the music to be played; this feature was also used for the station's regular variety hits programming. On August 29, 2014, at 1 PM, the station flipped back to country as 95.3 The Bull. The last song on "The Coast" was "Closing Time" by Semisonic, while the first song on "The Bull" was "This Is How We Roll" by Florida Georgia Line. It shares a common coverage area with market-leading WOKQ, as well as WBQQ, a York County simulcast of WTHT from the Portland area. On September 16, 2014, WSKX changed its call letters to WTBU to go with "The Bull" branding. HD Radio WTBU's second HD Radio subchannel carries a classic country format; the format had been carried on sister station WMYF (1380 AM) until its 2015 shutdown. References External links WUBB format change noted TBU Radio stations established in 1987 Country radio stations in the United States York, Maine IHeartMedia radio stations
```java /* * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * * path_to_url * * Unless required by applicable law or agreed to in writing, * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * specific language governing permissions and limitations */ package org.apache.guacamole.net; import org.apache.guacamole.GuacamoleException; import org.apache.guacamole.io.GuacamoleReader; import org.apache.guacamole.io.GuacamoleWriter; /** * GuacamoleSocket implementation which simply delegates all function calls to * an underlying GuacamoleSocket. */ public class DelegatingGuacamoleSocket implements GuacamoleSocket { /** * The wrapped socket. */ private final GuacamoleSocket socket; /** * Wraps the given GuacamoleSocket such that all function calls against * this DelegatingGuacamoleSocket will be delegated to it. * * @param socket * The GuacamoleSocket to wrap. */ public DelegatingGuacamoleSocket(GuacamoleSocket socket) { this.socket = socket; } /** * Returns the underlying GuacamoleSocket wrapped by this * DelegatingGuacamoleSocket. * * @return * The GuacamoleSocket wrapped by this DelegatingGuacamoleSocket. */ protected GuacamoleSocket getDelegateSocket() { return socket; } @Override public String getProtocol() { return socket.getProtocol(); } @Override public GuacamoleReader getReader() { return socket.getReader(); } @Override public GuacamoleWriter getWriter() { return socket.getWriter(); } @Override public void close() throws GuacamoleException { socket.close(); } @Override public boolean isOpen() { return socket.isOpen(); } } ```
Rita Luisa Zucca (; 1912–1998) was an American-born Italian radio announcer who broadcast Axis propaganda to Allied troops in Italy and North Africa. She became known as one of the "Axis Sallys", along with Mildred Gillars, who broadcast from Berlin, Germany. Early life Zucca's father, Louis, owned a very successful restaurant in New York's Midtown district in the 1930s and 1940s, called Zucca's Italian Garden. Located at 116-118-120 West 49th Street, the restaurant had its own promotional postcards which displayed a distinctly refined setting. Zucca spent her teenage years in a convent school in Florence and, as a young woman, had worked in the family business. She returned to Italy in 1938, working as a typist and renouncing her American citizenship three years later to save her family's property from expropriation by Mussolini's government. Axis Sally As the Allied invasion of Italy progressed, the Fascist government of Benito Mussolini decided to try to emulate the German radio's Axis Sally broadcasts of Mildred Gillars. In the summer of 1943, the Italian national radio network in Rome hired the 30-year-old Zucca with this aim in mind, in spite of her losing a typing job in 1942 for copying an anti-Fascist pamphlet. Zucca was teamed with German broadcaster Charles Goedel in the program Jerry's Front Calling. Much to Gillars' chagrin, Zucca was also referred to as Axis Sally. Zucca's trademark sign-off was "a sweet kiss from Sally", and she was often mistaken for Gillars. According to one account, Zucca signed onto each show by uttering "Hello Suckers!" and her signature tune was "Between the Devil and the Deep Blue Sea". Her broadcasts sometimes used intelligence provided by the German embassy in Rome in an attempt to confuse Allied troops. On July 8, 1943, the night before the invasion of Sicily, Zucca's broadcast told "the wonderful boys of the 504th Parachute Regiment" that "Col. Willis Mitchell's playboys the 61st Troop Carrier Group are going to carry you to certain death. We know where and when you are jumping and you will be wiped out." As the Allied armies advanced north into Rome, Zucca retreated north with the Germans in 1944 and resumed broadcasting from Milan. There, in September 1944, the broadcast crew of Jerry's Front was attached to a German military propaganda unit called the Liberty Station. By then Zucca was pregnant. Her son was born on December 15, 1944. She returned to the microphone 40 days later and continued until her final broadcast on April 25, 1945. Arrest As the Axis forces finally collapsed, Zucca went by train to her uncle's home in Turin, where she took refuge until her identification and arrest on June 5, 1945. A correspondent from the American military magazine Stars and Stripes said that Zucca's well-known crossed-eye condition did nothing to detract from her attractiveness: "True, her left eye is inclined to wander — but that cooey, sexy voice really has something to back it up." Newspapers in the United States were far more scathing. "Soft-Voiced 'Sally from Berlin' Found to Be Ugly Ex–N.Y. Girl" was a typical headline, with descriptions of the young mother as "[as] ugly and unattractive in person as her voice was appealing." Another journalist called her "cross-eyed, bow-legged and sallow-skinned." Trial All attempts by the American government to prosecute Zucca for treason broke down when it became clear that she had renounced her American citizenship before she started broadcasting. The FBI's J. Edgar Hoover wrote to the Justice Department: "In view of the fact that she has lost her American citizenship, no efforts are being made at the present time to develop a treason case against her." Zucca was then tried by an Italian military tribunal on charges of collaboration. On March 29, 1946, she was sentenced to four and half years in prison, but was released after nine months after the Italian government declared a general amnesty for collaborators in 1946. Later life Zucca was barred from returning to the United States and lived in relative obscurity in Italy until her death in 1998. References 1912 births 1998 deaths Italian fascists People who renounced United States citizenship Radio personalities from New York City Women in World War II American broadcasters for Nazi Germany American collaborators with Fascist Italy Italian propagandists American radio DJs Italian radio presenters Italian women radio presenters Nazi propaganda radio Radio controversies American emigrants to Italy Prisoners and detainees of Italy
Katherine Fowler may refer to: Katherine Philips, poet Kathy Fowler, medical reporter Katharine Fowler-Billings, geologist See also Fowler (surname)
```javascript export default "file5"; ```
Cardiacs Live{{efn|Longer titles: Cardiacs Live at the Paradiso, Amsterdam ''Cardiacs Live: Recorded Live at the Paradiso Amsterdam, Holland}} is a live album by Cardiacs, recorded at the Paradiso in Amsterdam on 15 May 1988. The live photo on the back cover, however, appears to have been taken at The Town and Country Club in London. A bootleg does exist with extra tracks that were unused on the official LP/CD. Track listing PersonnelBand Tim Quy – percussion, synth, big bass drum Tim Smith – lead singer, guitar Jim Smith – bass, singing, big bass drum Sarah Smith – sax, singing, big bass drum William D. Drake – keyboards, singing Dominic Luckman – drumsArtwork Steve Payne – front cover photo of Cardiacs David Oliver – front cover of decorative items Dominic Search – back cover photoCrew Matthew Cutts Dave Mercer Dominic Parker Bill Hiles Graham SimmondsManagement''' Mr. Walmesley – management The Consultant – sordid artfulness Miss Swift – serenity John Daniel – accountancy Notes References Cardiacs live albums 1989 live albums
```c /** * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "stdlib/complex/float64/base/assert/is_not_equal.h" #include "stdlib/complex/float64/reim.h" #include "stdlib/complex/float64/ctor.h" #include <stdbool.h> /** * Tests whether two double-precision complex floating-point numbers are not equal. * * @param z1 first double-precision complex floating-point number * @param z2 second double-precision complex floating-point number * @return boolean indicating if both complex numbers are not equal * * @example * #include "stdlib/complex/float64/ctor.h" * #include <stdbool.h> * * stdlib_complex128_t z1 = stdlib_complex128( 5.0, 2.0 ); * stdlib_complex128_t z2 = stdlib_complex128( 5.0, -2.0 ); * * bool v = stdlib_base_complex128_is_not_equal( z1, z2 ); */ bool stdlib_base_complex128_is_not_equal( const stdlib_complex128_t z1, const stdlib_complex128_t z2 ) { double re1; double re2; double im1; double im2; stdlib_complex128_reim( z1, &re1, &im1 ); stdlib_complex128_reim( z2, &re2, &im2 ); return ( re1 != re2 || im1 != im2 ); } ```
Bahman (, also Romanized as Bahmān) is a village in Darbqazi Rural District, in the Central District of Nishapur County, Razavi Khorasan Province, Iran. At the 2006 census, its population was 189, in 48 families. Etymology The word bahman has come from the Hindu word Brahman, here there was influence of Brahmin shahis , Hindu Shahis in the past, that's why it was corrupted to bahman! See also List of cities, towns and villages in Razavi Khorasan Province References Populated places in Nishapur County
Dharur may refer to: Dharur, Beed, a city in the state of Maharashtra, India Dharur, Vikarabad district, a town in the state of Telangana, India Dharur, Jogulamba Gadwal district, a mandal in the state of Telangana, India
```c++ // // gettable_socket_option.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~ // // // file LICENSE_1_0.txt or copy at path_to_url // #ifndef ARCHETYPES_GETTABLE_SOCKET_OPTION_HPP #define ARCHETYPES_GETTABLE_SOCKET_OPTION_HPP #include <cstddef> namespace archetypes { template <typename PointerType> class gettable_socket_option { public: template <typename Protocol> int level(const Protocol&) const { return 0; } template <typename Protocol> int name(const Protocol&) const { return 0; } template <typename Protocol> PointerType* data(const Protocol&) { return 0; } template <typename Protocol> std::size_t size(const Protocol&) const { return 0; } template <typename Protocol> void resize(const Protocol&, std::size_t) { } }; } // namespace archetypes #endif // ARCHETYPES_GETTABLE_SOCKET_OPTION_HPP ```
Wendell William Eads (June 10, 1923 – June 5, 1997) was an American Thoroughbred horse racing jockey. In the early 1940s he was a contract jockey with the prestigious Calumet Farm. Small, even by jockey standards, Eads weighed just 102 pounds and as a result could not control Calumet's extremely high strung but talented colt, Whirlaway. The problem cost Eads the chance to make history aboard Whirlaway who won the 1941 United States Triple Crown of Thoroughbred Racing. During his career, Wendell Eads won a number of important races including the Blue Grass Stakes and the Pimlico Special. As well, he competed in two of the American Classic Races. He was aboard Sun Again for a third-place finish in the 1942 Preakness Stakes and rode Dove Pie to a seventh-place finish in the 1943 Kentucky Derby Following his retirement from racing, Wendell Eads made his home in Oakland, Illinois where he was living at the time of his death in 1997. References Vaccar, Mike. 1941 -- The Greatest Year in Sports (2007) Doubleday November 4, 1991 Sports Illustrated article on Whirlaway and Wendell Eads 1923 births 1997 deaths American jockeys People from Oakland, Illinois
Federico Andrés Martínez Berroa (born 28 February 1996) is a Uruguayan professional footballer who plays for Liga MX Club León. Mainly a winger, he can also play as a forward. Club career Born in Montevideo, Martínez joined Liverpool Montevideo's youth setup at the age of 12, after playing for Zorzal Baby Fútbol Club and Club Las Flores Baby Fútbol. He made his first team – and Primera División – debut on 13 February 2016, starting in a 0–1 away loss against Plaza Colonia. Martínez only established himself as a starter in the 2017 campaign, and scored his first senior goal on 26 August of that year, netting the opener in a 1–2 loss at Peñarol. On 26 November, he scored a brace in a 5–0 home routing of Danubio. On 4 May 2019, Martínez scored a hat-trick in a 4–0 away win over Boston River. The following 30 January, he moved abroad and joined Argentine Primera División side Rosario Central on loan, after the club bought 30% of his economic rights for a rumoured fee of US$750,000. In September 2020, after only two matches for Central, Martínez moved to Independiente on loan until the following 31 January, with a buyout option. After featuring rarely, he rescinded his contract with the Rojo on 19 February 2021 and returned to his parent club. International career Martínez is a former Uruguay youth international. He was part of under-22 squad which finished fourth at 2019 Pan American Games. On 29 August 2021, Martínez received maiden call-up to senior team for FIFA World Cup qualifiers. Career statistics Club International References External links 1996 births Living people Uruguayan men's footballers Uruguayan expatriate men's footballers Footballers from Montevideo Men's association football forwards Uruguay men's youth international footballers Uruguayan Primera División players Argentine Primera División players Liverpool F.C. (Montevideo) players Rosario Central footballers Club Atlético Independiente footballers Club León footballers Club Nacional de Football players Uruguayan expatriate sportspeople in Argentina Uruguayan expatriate sportspeople in Mexico Expatriate men's footballers in Argentina Expatriate men's footballers in Mexico
The 1963 Rutgers Scarlet Knights football team was an American football team that represented Rutgers University in the 1963 NCAA University Division football season. Despite an overall losing record, Rutgers won the Middle Three Conference championship. In their fourth season under head coach John F. Bateman, the Scarlet Knights compiled a 3–6 record and were outscored by their opponents 148 to 145. The team's statistical leaders included Dave Stout with 634 passing yards, Don Viggiano with 404 rushing yards, and Paul Strelick with 242 receiving yards. The Scarlet Knights played their home games at Rutgers Stadium in Piscataway, New Jersey, near the university's main New Brunswick campus. Schedule References Rutgers Rutgers Scarlet Knights football seasons Rutgers Scarlet Knights football
Introducing IMx is the fifth album by IMx, formerly known as Immature, released on October 26, 1999, on MCA Records. It peaked at #101 on the Billboard 200 album chart and #31 on the Top R&B/Hip-Hop Albums chart. The album featured the hit single, "Stay the Night", which peaked at No. 23 on the Billboard Hot 100. As IMx, it was also their last album on MCA Records. Track listing References 1999 albums IMx albums MCA Records albums
is a role-playing video game published by Bandai Namco Games for the Nintendo DS. It is the third game in the Digimon Story series, part of the greater Digimon franchise. The title was released exclusively in Japan on July 1, 2010. Plot Players assume the role of either or , male and female Japanese fifth-graders respectively, who have just moved to a new district. After witnessing a luminous object falling into the mountains during a fireworks ceremony, they are transported to the Digital World, where they meet their Digimon partners. They are joined by classmates , a curious troublemaker, and , a caring, older-sister type, along with Hiroyuki's second-grade younger sister and her friend, a first-grader named . Together, they must aid their Digimon companions while thwarting a group of villains named Uno, Dos, and Tres. Development In November 2009, Bandai Namco Games launched a teaser website with a countdown to the reveal of a new title referred to only as "RPG_LOST" and "The RPG that will return". On November 20, the timer reached zero and officially revealed Digimon Story: Lost Evolution, along with a release date set for the following year. The game received a final release date the following April, along with an official website that revealed additional content as visitors completed minigames. Fan translation A fan translation by Operation Decoded, who had fan translated previous Nintendo DS Digimon games, was released on January 1, 2023. Reception Digimon Story: Lost Evolution received a 30 out of 40 total score in Japanese Weekly Famitsu magazine, based on individual reviews of 8, 8, 7, and 7. The game debuted as the 5th-highest selling title of its debut week, selling 42,153 copies. References External links Official trailer 2010 video games Bandai Namco games Digimon video games Nintendo DS games Nintendo DS-only games Japan-exclusive video games Role-playing video games Video games developed in Japan Video games with gender-selectable protagonists
Veerendra Basappa Patil (Kannada: ವೀರೇಂದ್ರ ಪಾಟೀಲ್; 28 February 1924 – 14 March 1997) was a senior Indian politician and was twice, the Chief Minister of Karnataka. He became Chief Minister for the first time from 1968–1971 and the second time was almost 18 years later, from 1989–1990. Biography Born in a middle-class family in Chincholi in Kalaburagi district, Patil belonged to the dominant Banajiga Lingayat community. He was first made a Deputy minister for Home in the S. Nijalingappa government in 1957. He was elected several times from Chincholi assembly constituency of Gulbarga district to the Karnataka Legislative Assembly. In his youth, Patil teamed up with Ramakrishna Hegde and took control of the Congress organisation in the state. Being young and charismatic ministers in Nijalingappa cabinet, they both were referred as 'Lava-Kusha'. When he moved to federal politics, Nijalingappa chose Patil as his successor. Patil's first innings as Chief minister lasted 33 months and 10 days. His control over the state administration dispelled the impression that he was just a dummy for his mentor, Nijalingappa, then the president of the All India Congress Committee. It was during his tenure that the century-old Cauvery water dispute gained ground as Tamil Nadu objected to the irrigation projects in the Cauvery basin. Patil went ahead with the projects even though the Central Water Commission refused to clear them, to protect the interests of the farmers of the south Karnataka region who were heavily dependent on irrigation from Cauvery. Also, It was he who promoted the Karnataka Power Corporation and separated the state electricity board from the responsibility of generating power. However, Patil was also charged with favouring his Lingayat (Banajiga) community. After the Congress split in 1969, Patil's Congress (O) party remained in power in the state until 1971 and crashed to a dismal defeat in the state assembly election in 1972 at the hands of Congress (I). Later, Patil returned to the hub of state politics as chief of the Janata Party's Karnataka state unit. He sacrified in the 1978 Lok Sabha by-election in Chikmagalur which featured Indira Gandhi in the fray. Through the often acrimonious campaign, Patil, who was the candidate of the Janata Party, refused to indulge in personal attacks on Indira Gandhi. The same year, he lost his Rajya Sabha seat to Hegde. When he lost the state Janata Party presidency to H.D. Deve Gowda, Patil moved over to Indira Gandhi's Congress-I. The twin defections of Veerendra Patil in Karnataka & Hitendra Desai in Gujarat turned around the fortunes of Congress(I), which otherwise had a spate of allegations against it. Winning election to the Lok Sabha from Bagalkot, he became Union Labour and Petroleum minister. However, he was later dropped from the Cabinet. He won Gulbarga seat in 1984 Indian general elections by defeating Vidyadhar Guruji, a former MLA from Gurmitkal. With none of the state congress leaders able to draw the masses, the state leadership fell onto Veerendra Patil's shoulders. As state party chief in Rajiv Gandhi's time, Patil reinvigorated the Congress in the state. The anti incumbency wave and the split in the Janata party resulted in a landslide victory for the Congress in November 1989. Veerendra Patil had led the election campaign on twin promises: Water & Transport facility to every village. Congress won 178 out of 224 MLA seats, which is its largest victory to-date (2020). With fiscal deficit reigning high & diminishing returns, Veerendra Patil took charge at a difficult time. He appointed M. Rajasekara Murthy as finance minister. The duo attacked the seconds liquor lobby by hiking the export duty by 10 times, from 2% to 20%. This had the dual-effect of reducing seconds-liquor consumption and also boosting the revenue of state government. It is to Patil's credit that he summoned the courage to take on the liquor lobby, at the risk of angering many benefactors of his party. He stuck to the line that his duty was first to the state and then, next to his party. This honesty proved dearly to him, though he became widely popular among the woman-folk of the state. His efforts to streamline the administration and stem the rot in the secretariat was acclaimed by many. However, in October 1990 communal riots broke out in some parts of the state due to newly emerged BJP's rath yatras and communal politics. He was removed by the then Congress President Rajiv Gandhi and succeeded by Sarekoppa Bangarappa. Patil never recouped after this incident. His health failed him and he decided against contesting the 1994 Karnataka Legislative Assembly election. Congress lost miserably and could not even become the main opposition party in that election. He died on 14 March 1997 in Bangalore. References 1924 births 1997 deaths People from Kalaburagi district Chief Ministers of Karnataka Rajya Sabha members from Karnataka India MPs 1980–1984 India MPs 1984–1989 Lok Sabha members from Karnataka Indian National Congress (Organisation) politicians Chief ministers from Indian National Congress Indian National Congress politicians from Karnataka Chief ministers from Indian National Congress (Organisation) Commerce and Industry Ministers of India Mysore MLAs 1957–1962 Mysore MLAs 1962–1967 Karnataka MLAs 1989–1994 Janata Party politicians Hyderabad MLAs 1952–1957
Zawidów () is a town in Zgorzelec County, Lower Silesian Voivodeship, in south-western Poland, at the Czech border. The town lies some south-south-east of Zgorzelec and west of the regional capital, Wrocław. As of 2019, the town had a population of 4,180. History In the Early Middle Ages, Zawidów was a stronghold of the Bieżuńczanie tribe, one of the old Silesian tribes. In the early 11th century it was included in the early Polish state by Bolesław I the Brave. The settlement was first mentioned in 1186. In the 14th century it became part of the Bohemian (Czech) Kingdom. It was granted town rights in 1369. In 1397 a school was founded. The town suffered from fires in 1427, 1433, 1469, 1769 and 1834. In 1635 it passed to the Electorate of Saxony and from 1697 was also under the rule of the Kings of Poland. As a result of the Thirty Years' War, Protestants from the Czech Kingdom settled there. In 1815 it fell to Prussia, and between 1871 and 1945 it was part of unified Germany. During World War II the German administration confiscated two historic church bells from the local church for armaments. After World War II, the town became part of Poland under the terms of the post-war Potsdam Agreement. The old church bells survived the war; however, they are now located in churches in Stuttgart and Ulm in Germany. Sports The local football team is Piast Zawidów. It competes in the lower leagues. References External links Official Website Cities and towns in Lower Silesian Voivodeship Zgorzelec County
Stellar 7: Draxon's Revenge is a 1993 video game developed and published by Dynamix for the 3DO Interactive Multiplayer. The game's introduction was read by actor Michael Dorn, who was famous at this time for playing a Klingon crewman Worf on the television series Star Trek: The Next Generation. Plot The player is the driver of a "super-tank" called Raven. Raven is armed with powerful weapons and an anti-gravity device that allows it to move fast. The player must defeat the evil hordes of Gir Draxon, overlord of the Arcturan Empire, who aims to enslave Earth and its inhabitants. Reception GamePro reviewed the game stating "If you want to space out with your 3DO Multiplayer, take a shot behind the controls of the Raven. Stellar 7 is stellar". Joe Blenkle from The Orangevale News stated that " It's no stroll in the park, however, as the action is intense and you will find yourself with white knuckles on the control pad before long" Entertainment Weekly noted an impressive opening narration, music, and graphics, but found that the controls were hard to use when fighting aliens. References 1993 video games 3DO Interactive Multiplayer games 3DO Interactive Multiplayer-only games Alien invasions in video games First-person shooters Tank simulation video games Video games developed in the United States Video game sequels Dynamix games Single-player video games
```java /** * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ package org.thingsboard.server.common.data.rule; import com.fasterxml.jackson.databind.JsonNode; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import org.thingsboard.server.common.data.id.RuleChainId; /** * Created by ashvayka on 21.03.18. */ @Schema @Data public class RuleChainConnectionInfo { @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "Index of rule node in the 'nodes' array of the RuleChainMetaData. Indicates the 'from' part of the connection.") private int fromIndex; @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "JSON object with the Rule Chain Id.") private RuleChainId targetRuleChainId; @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "JSON object with the additional information about the connection.") private JsonNode additionalInfo; @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "Type of the relation. Typically indicated the result of processing by the 'from' rule node. For example, 'Success' or 'Failure'") private String type; } ```
The Regional Municipality of Sudbury was a regional municipality that existed in Ontario, Canada, from 1973 to 2000, and was primarily centred on the city of Sudbury. It served as an upper-tier level of municipal government, aggregating municipal services on a region-wide basis like the counties and regional municipalities of Southern Ontario, and was the only upper-tier municipal government ever created in Northern Ontario. The regional municipality was dissolved with the creation of the amalgamated city of Greater Sudbury on January 1, 2001. Structure The regional municipality expanded the boundaries of the city of Sudbury to annex the community of Copper Cliff, the unincorporated geographic township of Broder, and half of the unincorporated geographic township of Dill. The other half of Dill Township — including the community of Wanup — remained unincorporated, although it was subsequently annexed into Greater Sudbury in 2001. The existing town of Capreol also expanded its boundaries in 1973 to annex the unincorporated communities of Selwood and Milnet. However, despite its status as part of the regional municipality, Statistics Canada did not include the town in Sudbury's Census Metropolitan Area for census purposes. The towns of Nickel Centre, Onaping Falls, Rayside-Balfour, Valley East and Walden were all newly created by the amalgamation of several smaller towns and townships. Valley East, the largest and fastest-growing of the smaller towns, was granted city status in 1997. All of the municipalities were dissolved into the city of Greater Sudbury in 2001. Each town and city in the regional municipality had its own mayor and council, and provided many of its own municipal services. The regional municipality had a regional council and chairman of its own, and provided certain services of region-wide interest, such as the regional road network, policing services, and social services. This was the only regional municipality in Ontario not to originate from a former county government; instead, it was created out of the Sudbury District, which still surrounds the current city. Unlike the counties and regional municipalities of Southern Ontario, the more sparsely populated north is divided into unincorporated districts which do not serve as governing bodies. The Regional Municipality of Sudbury was — and the current city of Greater Sudbury still is — the only census division in Northern Ontario which has the structure and functionality of a Southern Ontario census division. The regional offices were located at Civic Square, which was also the home of Sudbury's city council. Civic Square was renamed Tom Davies Square in 1997 following the retirement of longtime regional chairman Tom Davies. History In the 1976 municipal election, the first municipal elections held after the creation of the regional municipality, voters in three of the suburban towns rejected the new level of government. The strongest opposition was in Onaping Falls, with the vote running against regional government by a margin of 20 to one. Despite the opposition, however, none of the towns was released from the regional government structure. Amalgamation On January 1, 2001, all of the seven incorporated municipalities, as well as the regional municipality itself, were amalgamated into the united city of Greater Sudbury. The former municipal names remain in informal use to designate the different areas of the city. The name "Sudbury" itself may be ambiguous, however — depending on the context, it may denote either the old city in isolation, or a shorthand name for the entire amalgamated city. In addition to the former towns and cities of the Regional Municipality of Sudbury, the unincorporated townships of Dill, Cleland, Fraleck, Parkin, Aylmer, Mackelcan, Rathbun and Scadding were also annexed into the new city. The townships of Cleland and Dill encompass the communities of Wanup and St. Cloud, while the townships of Fraleck, Parkin, Aylmer, Mackelcan, Rathbun and Scadding comprise a wilderness area on the northeast side of Lake Wanapitei which contains only a few recreational properties. However, the annexation of this latter area into the city resulted in Lake Wanapitei supplanting Ramsey Lake, near downtown Sudbury, as the world's largest lake contained entirely within the boundaries of a single city. Regional Council chairs Prior to the 1997 municipal elections, the regional chairman was elected to the position from within the regional council — in that year, the position became generally elected by all voters in the regional municipality. Peter Wong, a former mayor of Sudbury, became the region's first elected chair, but died after just seven months in office. Following Wong's death, councillor Doug Craig served as interim chair until he was succeeded by Frank Mazzuca, a former mayor of Capreol, in a 1998 by-election. Don Collins, 1973–1975 Joe Fabbro, 1975–1977 Doug Frith, 1977–1980 Delki Dozzi, 1980 George Lund, 1980–1981 Tom Davies, 1981–1997 Peter Wong, 1997–1998 Doug Craig, 1998 Frank Mazzuca, 1998–2000 References External links Greater Sudbury Heritage Museums Municipal government of Greater Sudbury History of Greater Sudbury Sudbury Populated places established in 1973 Populated places disestablished in 2000 1973 establishments in Ontario 2000 disestablishments in Ontario
Vallam Pudursethi or Vallam Pudur is a village in Thanjavur taluk of Thanjavur district, in the Indian state of Tamil Nadu. It is located at a distance of 16 kilometres from Thanjavur and 4 kilometres from Vallam on the Thanjavur-Tiruchirapalli highway. Demographics As per the 2001 census, Vallam Pudursethi had a population of 1130 with 570 males and 560 females. The sex ratio was 982 and the literacy rate, 74.67. References Villages in Thanjavur district
Croats of Belgium are an ethnic group in Belgium. About 10,000 Belgians stated that they have Croatian roots, according to the Croatian associations and Catholic missions. They appeared in Belgium for the first time during the Thirty Years' War, as a part of Austrian and French cavalry. Even today, the exact number of Croats in Belgium is unknown, mostly because they were considered as Yugoslavs by Belgian government. During the last years, number of Croats in Belgium is increasing because of immigrants from Bosnia and Herzegovina. The number of Croats didn't pass the number of 10,000 since the World War II when Croatia was part of a larger country Yugoslavia. History Charles V, Holy Roman Emperor had settled Croats in Flanders around the Dunkerque (then Duinkerken) to serve him as soldiers. Later, Croatian travel writer, Feliks Gladić, in 17th century found that there are still Croats in Belgium, who still speak Croatian. Those Croats were Uskoks from Senj. In that time, Dunkerque was part of Netherlands as whole Belgium also. In year 1662 town of Dunkerque became part of France as King of England, Charles II sold it to the French. Early 20th century As Belgium was one of the most developed states in Europe in the early 20th century, part of Croats emigrated in it searching for better life. Moreover, the first wave of emigration started with creation of Kingdom of Yugoslavia and because of anti-Croatian politics of that state in 1918. Most of emigrants were peasants and workers from Bosnia, Herzegovina, Dalmatia and Lika. Croats were mostly workers at steel foundry, ironworks, mines of coal and such. At first, Croats done the hardest jobs, but they were highly respected for their famous devoted work and cleverness. Soon, Croats become employers and chiefs to some Belgians. After the assassination of Stjepan Radić and of Yugoslav King Alexander I in 1928-1929, and the consequent repression against Croatian nationalism, the number of Croats in Belgium increased, including many members of the Ustaše movement, secretly active also in Belgium, among which the Herzegovinian Croat general Rafael Boban, later US Army officer. At the time, the number of Croats in Belgium was 25,000 to 30,000. Most of Croats resided in Wallonia in the cities of Liège and Charleroi and in their surroundings. In 1932, under the influence of the brothers Antun and Stjepan Radić, Belgian Croats founded the first branch of the Croatian Peasant Party abroad in Jemeppe-sur-Sambre near Liège. The branch was later registered as the Mutual Aid Association "Croatian Peasant Party" (). They couldn't act like a political organization because of Belgian laws and the protests of the Yugoslav government. Before World War II only a small number of Croats had university degrees - among them dr. Ivan Puljić and economist Ante Klarić. In time of World War II most of Croats had stayed in Belgium, only the members of Ustaše left the country for Croatia. After the war, big part of Croats leaves industrial sector and employees in the trade sector, where they have big successes. Also, big number of Croats arrives in new, communist Yugoslavia, but soon, disappointed with communist policy, they again leave the country, but this time they emigrate to overseas. The Croats that remained in Belgium often married with Belgian women, because the amount of Croat women in Belgium at the time was very small. Post-war migration wave The first part of the second wave of immigration was composed of political emigrants. Thousands of Croats flees SFR Yugoslavia, big part of them were former Ustaše and Domobran soldiers. Most of those Ustaše emigrants soon left Belgium for other destinations overseas (Canada, United States, Australia). Those political emigrants who stayed in Belgium received asylum from United Nations. Also thanks to this new influx, the Croatian Peasant Party in Belgium saw a revival; the party leader, Vladko Maček, resided in exile in Paris until death in 1964. The branch organised ceremonies, cultural programs and celebrations on the anniversary of the death of Stjepan Radić. There was also a branch of the Croatian National Committee, an Ustaše-linked organization in Belgium. They convened a Second Assembly in Brussels in 1977, which was met with fierce criticism from the Yugoslav government. Assemblies of Croats were also organized by the priests who gather them on ceremonies and mass. The Croatian Peasant Party also organised a trade union, the Croatian Worker's Union (Hrvatski radnički savez), with headquarters in Charleroi. There were also few sport and cultural societies, of which some are still active today. Among others, there were also few Yugoslav clubs under the patronage of the Yugoslav embassy, which served for espionage of Croats in Belgium. Except for a few newsletters, there was also a monthly newspapers Hrvatski glas ("Croatian voice") that had been published in the 1950s and 1960s as formal newspapers of Croatian Peasant Party in Europe. They were edited by Oton Orešković, who was a former quartermaster of Croatian National Theatre. Those newspapers were printed on their own linotype which was a gift from the American trade union AFL-CIO to the Croatian Worker's Union. Oton Orešković, in cooperation with Delonoy published a comprehensive study in the review Historia on Ante Pavelić's rise to power until his life in exile. A further wave of immigration started after the quelling of the Croatian Spring by the Yugoslav communist regime in 1971. Thousands of Croats fled again to Belgium, some of them individually and some with their family. Most of them Croats soon left Belgium for Canada and Australia, smaller part went in United States, New Zealand and South America. Also, some of them scattered all around Europe. Soon Croats with higher education also moved from Belgium. After the 1970s and the death of communist dictator Josip Broz Tito, only Croats who worked for Yugoslav companies arrived in Belgium. The real political life of Belgian Croats started with the foundation of Croatian Democratic Union (HDZ) and arrival of Franjo Tuđman on the Croatian political scene. The first Croats of Belgium registered as HDZ members even before the first democratic elections. With sequence of events, Croats of Belgium founded branches of Croatian Democratic Union (in 1990 and 1991) in Antwerp, Brussels and Liège. The founders were later immigrants who came after World War II, and in less numbers, heirs of immigrants from the first wave of immigration. Croats in Belgium mostly helped financially by sending money to hospitals, charities and military budget. The money came mainly through HDZ branches. At the start of Croatian Homeland War, Belgian Croats founded Croatian Supplementary School, under patronage of the Croatian Ministry of Education. Croats in Belgium today Croatian political organizations that are still active are branches of Croatian Democratic Union, Croatian Peasant Party and Croatian Liberation Movement. Other active Croatian organizations are the Sport and Cultural Society "Croatia" from Antwerp, "SOS-Croatia" from Merchtem near Brussels, "HNK Croatia" (Croatian National Theater "Croatia") in Liège, association of Croatian students "AMAC" in Brussels, charity organization "Edmond Jardas" (they are mostly helping children of killed Croatian soldiers), Cultural society "Vatroslav Lisinski" from Liège, "Hrvatski radio sat" ("Croatian Radio Hour") from Liège (founded by members of HSK and Belgian-born Croats, promoting Croatian culture, tourism and return of Croats back to homeland). The head organization is the Croatian World Congress of Belgium led by Dr. Miroslav Klarić. One of the most important factors in saving of Croatian identity in Belgium is the Catholic Church. Because of misunderstanding of Croatian emigration and Government in Croatia those organizations and societies are being reduced. Demography It is difficult to determine with certainty the number, age structure of Croats in Belgium, their economic status and level of national identity, especially among the descendants of the first settlers. The biggest number of Croats, 5,000-6,000 from first and third generation, still live in Wallonia in area Liège. Croatian immigrants from the first wave of immigration who moved to Belgium in the late 1920s are almost all dead, so their children and later immigrants represent the Croats of Belgium. A very small number of Croats have returned to their homeland, especially the heirs of the first immigrants. Later, most Croatian immigrants settled around the area of Brussels and Antwerp in Flanders where the economic situation is nowadays better. The Croatian national identity is still strong, even with the third generation of immigrants, even though there is a small number of those who know they are Croats, but Croatia doesn't mean much to them. Also, there are increasing applications at Croatian schools and interest in Croatian. The first generation were mostly workers, while the second and third generation had better education and employment. Notable Croats in Belgium The contribution of Croats to development of Belgium is mostly due to hard-working Croats who worked in Belgian factories and mines. After World War II, Croats of Belgium had three university professors: Dr. Zvonimir Pintarović, geneticist; Dr. Miroslav Radman, sociologist; Danilo Klarić and other few doctors, professors, lawyers, economists, academic painters and architects. Besides, Croats also contributed to the Belgian sports. The most famous sportsmen are Tomislav Ivić, Mario Stanić, Robert Špehar, Josip Weber and others. Few Croats also successfully imported canned fish, medicinal plants and vines (Fabris, Divić, Vunić). Croats also work in catering, radios and various Belgian ministries. Junior Lefevre, karateka Jean-Philippe Susilovic, maître on Hell's Kitchen Belgium Jerko Tipurić, football manager and former footballer Tino-Sven Sušić, Bosnian Croat footballer Tomislav Dretar, is a Croatian, Bosnian, French and Belgian poet, writer, critic, and translator, as well as an academic, journalist, editor, political leader See also Belgium–Croatia relations Croats List of Croats References Hrvati izvan domovine Belgium Ethnic groups in Belgium
Eustenopus villosus is a species of true weevil known as the yellow starthistle hairy weevil. It is used as an agent of biological pest control against the noxious weed yellow starthistle (Centaurea solstitialis). The adult weevil is hairy and brown with white stripes. It is 4 to 6 millimeters long, not including its long snout. The female chews a hole in a closed flower head, deposits an egg inside, and seals the hole with a dark-colored mucilage. This visible hole can warp the shape of the flower head as it grows. The larva emerges from its egg in about three days and begins to feed on the flower parts and developing seeds. In just over two weeks the larva can destroy all or nearly all of the developing seeds. It uses the scraps to build a chamber in which it pupates for one to two weeks and then leaves the flower head as an adult. Both larva and adult of this species contribute to the damage done to the plant. The larvae eat the seeds in mature flower buds and the adults feed on smaller buds, destroying many. This weevil will readily attack many invasive Centaurea species, but has not been known to damage native flora. This weevil is native to southern Europe and the Mediterranean. It was first released as a biocontrol agent in the United States in 1990 and it is now established in much of the western United States wherever yellow starthistle grows. It is considered one of the more efficient yellow starthistle biocontrol agents. References Coombs, E. M., et al., Eds. (2004). Biological Control of Invasive Plants in the United States. Corvallis: Oregon State University Press, 427. External links USACE Biocontrol Profile invasive.org Biology of Yellow Starthistle Lixinae Insects used for control of invasive plants Biological pest control beetles
The Aguascalientes Open is a tennis tournament held in Aguascalientes, Mexico since 2011. The event is part of the ATP Challenger Tour and is played on outdoor clay courts. Past finals Singles Doubles References External links ATP Challenger Tour Tennis tournaments in Mexico Clay court tennis tournaments
```javascript /** * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ 'use strict'; /** * Create an array containing pseudorandom numbers generated using a 32-bit Mersenne Twister pseudorandom number generator. * * @module @stdlib/random/array/mt19937 * * @example * var mt19937 = require( '@stdlib/random/array/mt19937' ); * * var arr = mt19937( 10 ); * // returns <Float64Array> * * @example * var mt19937 = require( '@stdlib/random/array/mt19937' ); * * var arr = mt19937( 10, { * 'dtype': 'generic' * }); * // returns [...] * * @example * var mt19937 = require( '@stdlib/random/array/mt19937' ); * * var arr = mt19937.normalized( 10 ); * // returns <Float64Array> * * @example * var mt19937 = require( '@stdlib/random/array/mt19937' ); * * var arr = mt19937.normalized( 10, { * 'dtype': 'generic' * }); * // returns [...] * * @example * var mt19937 = require( '@stdlib/random/array/mt19937' ); * * var rand = mt19937.factory(); * // returns <Function> * * var arr = rand( 10 ); * // returns <Float64Array> * * @example * var mt19937 = require( '@stdlib/random/array/mt19937' ); * * var rand = mt19937.factory(); * // returns <Function> * * var arr = rand( 10, { * 'dtype': 'generic' * }); * // returns [...] */ // MODULES // var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' ); var main = require( './main.js' ); var factory = require( './factory.js' ); // MAIN // setReadOnly( main, 'factory', factory ); // EXPORTS // module.exports = main; // exports: { "factory": "main.factory", "normalized": "main.normalized" } ```