This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <atlbase.h> | |
#include <mfapi.h> | |
#include <mfidl.h> | |
#include <wmcodecdsp.h> | |
#include <wmcontainer.h> | |
#include <comdef.h> | |
#include <dmo.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.0 | |
import Multimedia 1.0 | |
MediaSession { | |
autoPlay: true | |
FileSource { | |
id: source | |
url: "video.avi" | |
} | |
AudioDeviceSink { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Multimedia 1.0 | |
import QtQuick 2.0 | |
MediaSession { | |
id: session | |
autoPlay: true | |
QtQuickSource { | |
id: source | |
frameSize: Qt.size(1920, 1080) | |
duration: 10000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.0 | |
import QtQuick.Window 2.0 | |
import Render3D 1.0 | |
Window { | |
id: root | |
width: 1024 | |
height: 768 | |
visible: true | |
SceneView { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Calculator.qml | |
import QtQuick 2.0 | |
QtObject { | |
property real a | |
property real b | |
readonly property real sum: a + b | |
signal overflow() | |
onSumChanged: { | |
if(sum > 10000000) overflow() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.0 | |
Rectangle { | |
id: root | |
property QtObject window | |
implicitWidth: 300 | |
implicitHeight: 150 | |
color: Qt.rgba(0.5, 0, 0.5, 1) | |
Item { | |
NumberAnimation on rotation { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter_hooks/flutter_hooks.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
home: MyHomePage(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter_map/flutter_map.dart'; | |
import 'package:latlong/latlong.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from scipy.fftpack import dct, idct | |
import matplotlib.pyplot as plt | |
from PIL import Image | |
import matplotlib.image | |
def dct_2d(x): | |
return dct(dct(x, axis=0, norm='ortho'), axis=1, norm='ortho') | |
def idct_2d(x): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
#grad1 { | |
height: 200px; | |
background-image: linear-gradient(to right,#ff0000ff, transparent, #0000ffff); | |
} | |
</style> |
OlderNewer